Why are there such tricks with degrees? - page 5

 
Vladimir Simakov:
Yeah. I read it, I smiled. I hope everyone knows that the number 0.2 for double does not exist? Go to sleep, who is at the computer, write a script, find the nearest fraction m/n for 0.2, not the fact that it turns out to be 1/5. At the same time, look for implementation of std::pow or System.MathPow, maybe it is stupid in such cases throw NaN, like if you want, then go to special libraries.

Well... SENSATION! A Schnobel Prize in the studio!

 
Dmitry Fedoseev:

Well... SENSATION! A Schnobel Prize in the studio!

What do you mean?
 
Олег avtomat:

Better here is the best reprise of your life

 
Vladimir Simakov:
What do you mean?

The topic here is purely about maths.

 
Dmitry Fedoseev:

What's with the strange reaction to three semesters? A full in-depth program. And you didn't skip and open your textbooks.

If you hadn't written such nonsense about complex numbers...

 
Олег avtomat:

If you hadn't written such nonsense about complex numbers...

You should think about how you didn't learn them

 
Dmitry Fedoseev:

Better yet , here' s the best reprise of your life.

and you don't even know what it's about

 
Олег avtomat:

and you don't even know what it's about.

I can see that you do.

Go ahead and do it again.

 
Vladimir Simakov:
Yeah. I read it and smiled. I hope everyone knows that number 0.2 for double does not exist? Go to sleep, who has a computer, write a script, find the nearest fraction m/n for 0.2, not the fact that it turns out to be 1/5. At the same time, look for implementation of std::pow or System.MathPow, maybe it is stupid in such cases throw NaN, like if you want, then go to special libraries.

in R:

0.2 == 1/5

TRUE


sin(pi/6)

0.5


sin(pi/6) == 0.5

FALSE

 
Dmitry Fedoseev:

I can see how you understand.

Go ahead and do it again.

It's obvious you're completely unfamiliar with it:

.


Open a book, read it carefully. And don't embarrass yourself.

Reason: