acos(0.11)

acos(0.11) - 消息

#1 已发布: 2010/6/13 03:56:51
lucioestacio

lucioestacio

0个赞,共1个帖子。

组: User

Hi... in my workpage display its.

acos(0.1)=1.4706
acos(0.11)=1.4606+1.1102*10^-16*i
acos(0.12)=1.4505

wait?
thanks.
Lucio
#2 已发布: 2010/6/13 06:33:30
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Hello Lucio,

SMath does not have the treshold of the real and imaginary numbers. That means that there is not incorporated the procedure for presenting small real and imaginary numbers. Therefore, in some cases SMath will represent a complex number with rather small imaginary part instead of a real number expected. The small imaginary part (like in your case) is often due to the small numerical error of the numerical algorithm applied.

For instance, it is rational to represent a small real number say, 10^-35 as zero, or a comples number, say 5.3+1.8*10^(-18) as 5.3 ignoring the imaginary part. This is not implemented in SMath yet.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • 有新帖
  • 无新帖