Euler's identity realated doubt

##### Title

##### Question

-->exp(%pi*%i)+1

ans =

1.225D-16i

-->cos(%pi) + %i*sin(%pi)+1

ans =

1.225D-16i

-->clean(exp(%pi*%i)+1)

ans =

0

-->clean(cos(%pi) + %i*sin(%pi)+1)

ans =

0

how 0 is coming after using clean() function . can you give explanation for it.

Scilab Getting-Started 15-16 min 50-60 sec

__Answers:__

Because clean rounds off tiny values, and 1.225D-16i is extremely tiny.

Login to add comment