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
The most precise version:
\
marker _float$constants_
\ some float constants
$0fdb $4049 fconstant _pi
$04f3 $3fb5 fconstant _sqrt2
$f854 $402d fconstant _e
$7217 $3f31 fconstant _ln2
$5d8d $4013
The last update:
-
marker _floatconstants_
\ some float constants
355 s>f 113 s>f f/ fconstant_pi
355 s>f 226 s>f f/ fconstant_pi_half
355 s>f 452 s>f f/ fconstant_pi_quarter
8119 s>f 5741 s>f f/ fconstant _sqrt2
5741 s>f 8
Hi, this is an update for experimenters (till we get input/output of
float numbers):
--
marker _floatconstants_
\ some float constants
355 s>f 113 s>f f/ fconstant_pi
355 s>f 226 s>f f/ fconstant_pi_half
355 s>f 452 s>f f/ fconstant
Leon, no it is not about the rounding, the bug was in my source:
1 s>f 100(0)<<<f f/ fconstant _1000th.
Of course, I do not expect decimal places..(:-)).
Pito
- PŮVODNÍ ZPRÁVA -
Od: "Leon N Maurer"
Komu: [email protected]
Předmět: Re: [Amforth-de
Is the bug that it returns 13951 but the calculator returns
13951.906691388013? That should be expected because f>s truncates the
fractional part -- it doesn't round.
-Leon
>Sunday 29 August 2010
>From: "pito"
>Subject: Re: Some useful Float Constants
> 1 bug (_thousand) removed:
...
> Ex1:
>
1 bug (_thousand) removed:
marker _floatconstants_
\ some float constants
355 s>f 113 s>f f/ fconstant_pi
355 s>f 226 s>f f/ fconstant_pi_half
355 s>f 452 s>f f/ fconstant_pi_quarter
8119 s>f 5741 s>f f/ fconstant _sqrt2
5741 s>f 8119 s>f f/ fconstant
Hi, here are some useful constants for Leon's float lib.
Precision ~10^-8 or better. Pito
marker _floatconstants_
\ some float constants
355 s>f 113 s>f f/ fconstant_pi
355 s>f 226 s>f f/ fconstant_pi_half
355 s>f 452 s>f f/ fconstant_