Why are there such tricks with degrees? - page 6

 
Dmitry Fedoseev:

The topic here is purely about maths.

Yeah. That's the floating-point maths I'm talking about. Have you heard of the ieee 754-2008 standard?
0.2=0x3fc9999999999a, but
0x3fc999999999999a=0.200000000000000011102230246251565404236316680908203125.
And how does an iron handle that?
 
Олег avtomat:

Obviously, you're completely unfamiliar with it:

.


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

The monkey's got a weak brain in her old age;

And she has heard from men,

That this evil is not yet so great a hand:

It's only a matter of getting MATCAD.

She has installed MATCAD on her computer;

She turns MATCAD this way and that way:

She presses it to her forehead or to her tail,

Then she sniffs it, then she licks it;

The MATCAD does not act in any way.

"Phew! - she says, - and he's a fool,

Who listens to the people's lies:

All about the MATCAD is just a lie to me;

And there's no use for it."

The marmoset, in her anger and sadness...

She slammed it so hard against a rock,

that the screen turned blue.


Unfortunately, that's what happens to people:

No matter how useful a thing is, it's worthless,

The ignorant man's knowledge of it is all for naught;

But if the ignorant be more learned,

he hates it, too.

 
Vladimir Simakov:
Yeah. That's the floating point maths I'm talking to you about. Have you heard of the ieee 754-2008 standard?
0.2=0x3fc9999999999a, but
0x3fc999999999999a=0.200000000000000011102230246251565404236316680908203125.
And how does the iron handle that?

And why are you telling me this when that's not what we're discussing here right now?

 
Aleksey Nikolayev:

in R:

0.2 == 1/5

TRUE


sin(pi/6)

0.5


sin(pi/6) == 0.5

FALSE

What does this have to do with R? It's a C++/C# variation. And yes, it is a compiler.
 
Dmitry Fedoseev:

The monkey became weak in his old age;

And from men she has heard,

That this evil is not yet so great a hand:

It's only a matter of getting a MATCAD.

She has installed MATCAD on her computer;

She's got the MATCAD up and down:

She presses it to her forehead or to her tail,

Then she sniffs it, then she licks it;

The MATCAD does not act in any way.

"Phew! - she says, - and he's a fool,

Who listens to the people's lies:

All about the MATCAD is just a lie to me;

And there's no use for it."

The marmoset, in her anger and sadness...

She slammed it so hard against a rock,

that the screen turned blue.


Unfortunately, that's what happens to people:

No matter how useful a thing is, it's worthless,

The ignorant man's knowledge of it is all for naught;

But if the ignorant be more learned,

he hates it, too.

Thou speak'st so of thyself. Thou know'st not how to handle a matcad, and so thou wilt be turned and twisted.

 
Vladimir Simakov:
Yeah. And I'm telling you about the maths of floating point numbers. Have you heard of the ieee 754-2008 standard?
0.2=0x3fc9999999999a, but
0x3fc999999999999a=0.200000000000000011102230246251565404236316680908203125.
And how does the iron handle that?

#include <ratio>

 
Олег avtomat:

That's exactly what you're talking about. You don't know how to use matkad, that's why you get sick and twisted.

I don't use matkad. So what? I don't even know how to operate a bulldozer, so what? And I'm not even going to learn how to do it.

 
Dmitry Fedoseev:

I don't use Matcad. So what? I can't even drive a bulldozer, so what?

That's your thing: You don't use it, but you rag on it and shit on it. That's your gut.

 
Олег avtomat:

That's your thing: you don't use it, but you rag on it and shit on it. That's your gut.

What's that got to do with the Matcad?

 
Aleksey Nikolayev:

#include <ratio>

Oh dear, so we'll pass the numerator and the denominator of the rational stanza explicitly after all? ))) So this is double in MathPow, and there seems to be no other way to do it in mql.
Reason: