Maxima Cas random function takes as an input floating point number and gives floating point number as an output.
I need floating point number with more digits, so I use bfloat with increased precision.
I have tried :
random(1.0b0)
bfloat(random(1.0));
The best result was :
(%i11) :bfloat(%pi)/6.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0
(%o11) 5.235987755982988730771072305465838140328615665625176368291574320513027343810348331046724708903528447b-1
but it is not random.
Aucun commentaire:
Enregistrer un commentaire