- #1
sara_87
- 763
- 0
Homework Statement
I put the following code into MATLAB:
d=(0.2+0.1)-0.2
y=(asin((d)/(0.1)))
The answer gives:
d=0.100000000000000
and i know that d/0.1 is equal to 1. so, i expect the answer of y to be
y=1.570796326794897 (which is pi/2)
but, MATLAB gives:
y= 1.570796326794897 - 0.000000021073424i
Homework Equations
The Attempt at a Solution
if i put:
d=0.1
then it would give:
y= 1.570796326794897
But, i want to know why the answer is complex valued when it uses 0.1000000000000000 ?
Thank you in advance.