Why mathcad incorrectly considers sin and cos?

966c625e184243f29d581101674308be.PNG
Why is the answer not zero??
July 8th 19 at 11:58
2 answers
July 8th 19 at 12:00
Solution
Right, just under double (I think) accuracy.
First value: 0.0000000000000000000000000000000003749
Second in: 0.000000000000000006123
Could a toe wrong.
Why - because translates degrees to radians using PI, then there is an inaccuracy.
Thank you! But how to fix? - vivianne commented on July 8th 19 at 12:03
: as far as I remember you have to write a := 90*deg otherwise there will be radians - amparo_Hickle commented on July 8th 19 at 12:06
No, not in radians problem is, there are degrees, deg tried instead of the character the answer is the same - vivianne commented on July 8th 19 at 12:09
Internal mathematics is considered to be in radians, otherwise cos(90) would be exactly 1. - Daphne_Roob commented on July 8th 19 at 12:12
: cos(Pi/2) the answer is the same) can be done cos(90)=0? - vivianne commented on July 8th 19 at 12:15
or include the rounding in after -10 degree - vivianne commented on July 8th 19 at 12:18
: The problem is that PI is an infinite decimal point after the number. In the computer it cannot be represented with 100% accuracy. Just approximately, how many digits after the decimal point. - Daphne_Roob commented on July 8th 19 at 12:21
: 13d7804d5afe41779cb80cd1846de007.PNG
As an option you can consider? - vivianne commented on July 8th 19 at 12:24
: round as in the case of degrees and radians will give quite a correct zeros, even when rounded to 10 digits. Can. - Daphne_Roob commented on July 8th 19 at 12:27
Well! Clear. Thank you) - vivianne commented on July 8th 19 at 12:30
July 8th 19 at 12:02
13d7804d5afe41779cb80cd1846de007.PNG

Find more questions by tags MathematicsMathcad