Hi,
an update of useful floating point constants (rounded, single
precision).
Good for testing of flibs until finput available.
\

marker _float$constants_

\ some floating point constants, rounded

$0fdb $4049             fconstant               _pi
$0fdb $c049             fconstant               _-pi

$04f3 $3fb5     fconstant               _sqrt2
$04f3 $bfb5     fconstant               _-sqrt2

$f854 $402d             fconstant               _e
$f854 $c02d             fconstant               _-e

$7218 $3f31             fconstant               _ln2
$7218 $bf31             fconstant               _-ln2

$5d8e $4013             fconstant               _ln10
$5d8e $c013             fconstant               _-ln10

$209b $3e9a             fconstant               _log2
$209b $be9a             fconstant               _-log2


$0000 $3f00 fconstant                   _half
$0000 $bf00 fconstant                   _-half

$aaab $3eaa fconstant                   _third
$aaab $beaa fconstant                   _-third

5 s>f 127 s>f f/ fconstant              _mm2inch

10 s>f fconstant                                _10
100 s>f fconstant                               _1e2
1000 s>f fconstant                              _1e3
10000 s>f fconstant                             _1e4
_1e3 _1e3 f* fconstant                  _1e6
_1e6  _1e3 f* fconstant                 _1e9
_1e9  _1e3 f* fconstant                 _1e12
_1e12  _1e3 f* fconstant                _1e15
_1e15  _1e3 f* fconstant                _1e18

$cccd $3dcc fconstant                   _1e-1
$d70a $3c23 fconstant                   _1e-2
$126f $3a83 fconstant                   _1e-3
$b717 $38d1 fconstant                   _1e-4
$c5ac $3727 fconstant                   _1e-5
$37bd $3586 fconstant                   _1e-6
$705f $3089 fconstant                   _1e-9
$bccc $2b8c fconstant                   _1e-12
$1d7d $2690 fconstant                   _1e-15
$92ef $2193 fconstant                   _1e-18

0 s>f fconstant _0
-1 s>f fconstant _-1
1 s>f fconstant _1


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Amforth-devel mailing list
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to