<rick42>
oops (native "@" "erf" Unity (cons X Unity)) where Unity is (** 10 *Scl)
<rick42>
u know what i mean
<Regenaxer>
yes
<Regenaxer>
Unity is the number?
<Regenaxer>
(** 10 *Scl)
<Regenaxer>
ah
<Regenaxer>
hehe, I looked the wrong place
<Regenaxer>
nevermind
<rick42>
yes Unity is 1.0 (but it can't be resolved at read time)
<rick42>
ok
<Regenaxer>
I see, you set it dynamically
<rick42>
yes, so that my user (probably only me :) can change "scale"
<rick42>
dynamically
<Regenaxer>
right
<alexshendi>
Hi Regenaxer, rick42
<rick42>
hi alexshendi!
<Regenaxer>
Good evening alexshendi
<rick42>
alexshendi: I was away in Decmeber, but did you meet any picolisp users at the congress?
<rick42>
c3
<alexshendi>
I met beneroth.
<rick42>
ues!
<rick42>
yes! I am jealous of you. i should like to meet him (and you) one day
<alexshendi>
The congress is *awesome*, but I always feel that I have by accident missed the best part of it. Because there are so many things to see/do.
<rick42>
that's fantastic
<rick42>
so, i wrote this convenience function called `fix` that I use to convert non-fixpoint numbers (usually integers) into fixpoint numbers
<rick42>
: (fix 1)
<rick42>
-> 1
<rick42>
: (scl 3 (fix 1))
<rick42>
-> 1000
<rick42>
: (scl 3 (fix "1"))
<rick42>
-> 1000
<rick42>
: (scl 3 (fix '((1 2) (3 4))))
<rick42>
-> ((1000 2000) (3000 4000))
<rick42>
the last one is a [representation of a] 2x2 matrix :)
<rick42>
now, dynamic unity can be expressed as (fix 1) and other integers like 2 (where I used to say (* 2 Unity)) now I say (fix 2)
<Regenaxer>
Perfect
<Regenaxer>
Looks like these are good candidates to extend your article
<Regenaxer>
the blog post
<rick42>
yes. i'm planning on a follow up article ... after I wrestle with more of these issues.
<Regenaxer>
Good news
mtsd has joined #picolisp
mtsd has quit [Quit: WeeChat 1.6]
orivej_ has joined #picolisp
orivej has quit [Read error: Connection reset by peer]
rob_w has quit [Quit: Leaving]
alexshendi has quit [Read error: Connection reset by peer]