corecheckno has quit [Remote host closed the connection]
_whitelogger has joined #picolisp
aw- has joined #picolisp
aw- has quit [Quit: Leaving.]
_whitelogger has joined #picolisp
aw- has joined #picolisp
<
tankf33der>
hi all
<
tankf33der>
abu[7]: can i use picolisp's fixedpoint math for science calculations ?
<
abu[7]>
Hi tankf33der! Why not?
<
tankf33der>
i thought fixedpoint only for finance calculations.
<
tankf33der>
precision issues and etc.
<
abu[7]>
I use it eg. in the flight simulator for physical (Newton) simulations
<
tankf33der>
i will try this calculation then
<
tankf33der>
lets see
<
tankf33der>
i want to get the same number
<
abu[7]>
high precision
<
abu[7]>
Scale around 60, yes
<
abu[7]>
Will be a bit slow in Pil perhaps
<
tankf33der>
lets see
<
abu[7]>
For physical or engineering stuff I usually use (scl 6). It is precise enough and mostly fits into shortnums.
<
tankf33der>
abu[7]: Do you see the difference at the end? It's accumulated precision error.
<
tankf33der>
669131 vs. 669676
<
abu[7]>
Yes, that't normal
<
abu[7]>
btw, the '1' is not needed
<
abu[7]>
also in (* 1.0 1)
<
abu[7]>
Times 1 is a no-op
<
tankf33der>
thanks. committed
corecheckno has joined #picolisp
aw- has quit [Ping timeout: 245 seconds]
corecheckno has quit [Remote host closed the connection]
aelius has quit [Remote host closed the connection]
aelius has joined #picolisp
beneroth__ has quit [Quit: Leaving]
geri has quit [Remote host closed the connection]
corecheckno has joined #picolisp
_whitelogger has joined #picolisp
ello has joined #picolisp
ello_ has joined #picolisp