"5.6.1.1 Choosing an interval" example not working

Added by Paco Riviere over 3 years ago

I am trying example questions in the guide and don't succed with the example in 5.6.1.1 Choosing an interval
I am not able to compile any of the 5.6.1.1 example versions in EN and FR guides, both giving a FP-EVAL error message.
Am I missing anything or is there something wrong with them?

Thanks in advance.


Replies (5)

RE: "5.6.1.1 Choosing an interval" example not working - Added by Alexis Bienvenüe over 3 years ago

both giving a FP-EVAL error message.

Please attach the full source file used, and copy the exact error message.

RE: "5.6.1.1 Choosing an interval" example not working - Added by Paco Riviere over 3 years ago

Thanks to both of you.
Source included.

Error is like:

@Overfull \hbox (16.79755pt too wide) in paragraph at lines 105--105
[] []
( FP-EVAL ( FP-UPN ( FP-RANDOM ( FP-DIV ) ) ( FP-MUL ) ( FP-ADD ) ( FP-TRUNC )
) ) ( FP-EVAL ( FP-UPN ( FP-RANDOM ( FP-DIV ) ) ( FP-MUL ) ( FP-ADD )
( FP-TRUNC ) ) ) ( FP-EVAL ( FP-UPN ( FP-ADD ) ( FP-DIV ) ) )
! Undefined control sequence.
<recently read> \mathbb

l.105 l.105 }@

simple.tex (3.1 kB)

RE: "5.6.1.1 Choosing an interval" example not working - Added by Frédéric Bréal over 3 years ago

\pgfmathsetseed{2056} requires

\usepackage{pgf}
like \FPseed
\usepackage{fp}

\mathbb requires a mathematical package. By default, I use

\usepackage{amssymb,amsfonts,mathtools}

A tip to find the wrong line : comment \onecopy and the last brace before \end{document}

RE: "5.6.1.1 Choosing an interval" example not working - Added by Paco Riviere over 3 years ago

Thanks, Now it does!

@Gérard: Nice tip!!

(1-5/5)