Numeric Command

From GeoGebra Manual
Revision as of 13:30, 15 May 2013 by Murkle (talk | contribs) (add cancelation example Numeric[-500000000/785398163*sin(785398163/500000000)*1258025227.19^2+500000000/785398163*1258025227.19^2,30])
Jump to: navigation, search



CAS Syntax

Numeric[ <Expression> ]
Tries to determine a numerical approximation of the given expression. The number of decimals depends on the global rounding you choose in the Options Menu.
Example:
Numeric[3 / 2] yields 1.5.
Numeric[ <Expression>, <significant figures> ]
Tries to determine a numerical approximation of the given expression, using the entered number of significant figures.
Example:
Numeric[sin(1), 20] yields 0.84147098480789650665.
Note: If you don't specify enough digits then you can get an apparently wrong answer due to floating point cancelation for example
Numeric[-500000000/785398163*sin(785398163/500000000)*1258025227.19^2+500000000/785398163*1258025227.19^2,10] will give 0 but
Numeric[-500000000/785398163*sin(785398163/500000000)*1258025227.19^2+500000000/785398163*1258025227.19^2,30] will give 0.318309886345536696694580314215
© 2024 International GeoGebra Institute