2532 |
precision, but it doesn't always bump the precision up enough. |
precision, but it doesn't always bump the precision up enough. |
2533 |
In each case, Calc added about two digits of precision during |
In each case, Calc added about two digits of precision during |
2534 |
its calculation and then rounded back down to 12 digits |
its calculation and then rounded back down to 12 digits |
2535 |
afterward. In one case, it was enough; in the the other, it |
afterward. In one case, it was enough; in the other, it |
2536 |
wasn't. If you really need @var{x} digits of precision, it |
wasn't. If you really need @var{x} digits of precision, it |
2537 |
never hurts to do the calculation with a few extra guard digits. |
never hurts to do the calculation with a few extra guard digits. |
2538 |
|
|
16395 |
@kindex v p (complex) |
@kindex v p (complex) |
16396 |
@pindex calc-pack |
@pindex calc-pack |
16397 |
The @kbd{v p} (@code{calc-pack}) command can pack the top two numbers on |
The @kbd{v p} (@code{calc-pack}) command can pack the top two numbers on |
16398 |
the the stack into a composite object such as a complex number. With |
the stack into a composite object such as a complex number. With |
16399 |
a prefix argument of @i{-1}, it produces a rectangular complex number; |
a prefix argument of @i{-1}, it produces a rectangular complex number; |
16400 |
with an argument of @i{-2}, it produces a polar complex number. |
with an argument of @i{-2}, it produces a polar complex number. |
16401 |
(Also, @pxref{Building Vectors}.) |
(Also, @pxref{Building Vectors}.) |
21195 |
@noindent |
@noindent |
21196 |
The portion selected is always large enough to be considered a complete |
The portion selected is always large enough to be considered a complete |
21197 |
formula all by itself, so selecting the parenthesis selects the whole |
formula all by itself, so selecting the parenthesis selects the whole |
21198 |
formula that it encloses. Putting the cursor on the the @samp{+} sign |
formula that it encloses. Putting the cursor on the @samp{+} sign |
21199 |
would have had the same effect. |
would have had the same effect. |
21200 |
|
|
21201 |
(Strictly speaking, the Emacs cursor is really the manifestation of |
(Strictly speaking, the Emacs cursor is really the manifestation of |
23738 |
guess on the stack, and are prompted for the name of a variable. The guess |
guess on the stack, and are prompted for the name of a variable. The guess |
23739 |
may be either a number near the desired minimum, or an interval enclosing |
may be either a number near the desired minimum, or an interval enclosing |
23740 |
the desired minimum. The function returns a vector containing the |
the desired minimum. The function returns a vector containing the |
23741 |
value of the the variable which minimizes the formula's value, along |
value of the variable which minimizes the formula's value, along |
23742 |
with the minimum value itself. |
with the minimum value itself. |
23743 |
|
|
23744 |
Note that this command looks for a @emph{local} minimum. Many functions |
Note that this command looks for a @emph{local} minimum. Many functions |
33996 |
|
|
33997 |
@defun format-value a width |
@defun format-value a width |
33998 |
Convert the Calc number or formula @var{a} to string form, using the |
Convert the Calc number or formula @var{a} to string form, using the |
33999 |
format seen in the stack buffer. Beware the the string returned may |
format seen in the stack buffer. Beware the string returned may |
34000 |
not be re-readable by @code{read-expr}, for example, because of digit |
not be re-readable by @code{read-expr}, for example, because of digit |
34001 |
grouping. Multi-line objects like matrices produce strings that |
grouping. Multi-line objects like matrices produce strings that |
34002 |
contain newline characters to separate the lines. The @var{w} |
contain newline characters to separate the lines. The @var{w} |