Another thing which I've found an which makes me doubtful is the output of the following code:
which outputs
The output is not correct because sin(45) equals cos(45).
And if I take the results of "PowerToy Calc" (enhanced calculator by Microsoft) they both are
If you now compare the results it shows that the numbers (bmax and powertoy calc) equal until the 15th decimal place.
Is it a bug in MAPM or in the BlitzMax-Implementation? I think it's MAPM because when looking through the code I found nothing weird which could cause this bug.
SuperStrict Framework BaH.MAPM Import BRL.StandardIO Const L:Int = 32 Local value:TMAPM = New TMAPM.Create("45") Local sine:TMAPM = value.Sin(L) Local cosine:TMAPM = value.Cos(L) Print sine.ToFixtPtString(L) Print cosine.ToFixtPtString(L) Print sine.compare(cosine)
which outputs
0.70710678118654765902290160974513 0.70710678118654738977878711446454 1
The output is not correct because sin(45) equals cos(45).
And if I take the results of "PowerToy Calc" (enhanced calculator by Microsoft) they both are
0.70710678118654752440084436210485If you now compare the results it shows that the numbers (bmax and powertoy calc) equal until the 15th decimal place.
Is it a bug in MAPM or in the BlitzMax-Implementation? I think it's MAPM because when looking through the code I found nothing weird which could cause this bug.