Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

sin() and cos()... wtf? (c++)

Name: Anonymous 2006-09-04 0:32

Check this out:

double direction, length, result1, result2;
out << "direction?\n";
cin >> direction;
result1 = cos(direction);
result2 = sin(direction);
cout << result1 << "\n";
cout << result2 << "\n";
This code is fucked up, because when I enter 45, it should return the same value (.70786 or something similar).  Instead, I get:

0.525322 (cos)
0.850904 (sin)

It's almost like the C++ library is fucked up or something.  I know I haven't forgotten basic geometry (windows calculator bears this out) and I don't think I'm going insane, so WHAT AM I DOING WRONG?

Name: Anonymous 2006-09-07 19:55

>>38 is gaybicfag

Name: Anonymous 2006-09-08 1:11

FACE IT, AMERICA'S SCHOOL SYSTEMS ARE SUFFERING BECAUSE THE GOVERNMENT KNOWS YOU DON'T HAVE TO BE SMART TO SHOOT "SAND NIGGERS", AND THEY'LL WASTE MONEY IF THEY TRY TO TEACH YOU, CAUSE YOU'LL JUST GET SPLATTERED OR GET UPPITY DUE TO YOUR INTELLIGENCE ANYWAY.

Name: Anonymous 2006-09-08 2:25

So like. People are actually bragging about knowing radians?

My son, 9 years old, knows the difference between a degree and a radian. And he just tried to use a fork to open a can of corn. This states his level of intelligence.

Name: Anonymous 2006-09-08 4:23

>>43
he just tried to use a fork to open a can of corn
An awesome idea! Gotta try that when I get home, thanks for the tip! I never knew how to open those damned cans.

Name: Anonymous 2006-09-08 8:20

>>43
No, we're mocking the OP for not knowing about radians, because they're such a basic and essential concept.

Name: Anonymous 2006-09-09 1:08

I thought >>38 said homophones...

Name: Anonymous 2006-09-09 1:08

>>43
You obviously come from a math family.  I didn't.

Name: Anonymous 2006-09-09 1:09

>>43
You obviously come from a math family.  I didn't.

Name: Anonymous 2006-09-09 1:12

People always assume that everyone is exactly like them, and make all their judgements based on themselves.  Programmers, Mathmaticians, people interested in extremely analytical stuff tend to do that.   I don't know why.

Name: Anonymous 2006-09-09 1:27

>>49
You're still fucking stupid, and don't belong in programming.  STFU.

Name: Anonymous 2006-09-09 8:26

>>49
Your logic is retarded. Maths is easy.

Name: Anonymous 2006-09-09 9:35

>>1-51
You obviously come from a negro family.  I didn't.

Name: Anonymous 2006-09-09 13:46

Yes. I'm a C programmer. So? I don't see a problem. I embraced my UNIX soul long ago and I am happy together with my compiler (who is a cute layered front/backend design!). We have a fucking lot of functions in and outside of the kernel and I am pretty compact and resource conserving.

But thanks anyway asshole. Go and beat off to your stupid garbage collection shit while I #INCLUDE <stdio.h> with my preprocessor.

Name: Anonymous 2006-09-09 14:44

Yes. I'm an assembly programmer. So? I don't see a problem. I embraced my mnemonics long ago and I am happy together with my assembler (which allows macros - who needs functions?). We have a fucking lot of documentations of ABIs in and outside of the kernel and I can do anything I want as long as I build it from the ground up.

But thanks anyway asshole. Go and beat off to your stupid libc while I constantly reinvent the wheel.

Name: Anonymous 2006-09-09 19:25

>>54
Awesome

Name: Eclipz 2006-09-09 20:39

Your inputs need to be in radians, not degrees.  To get radians from degrees, multiply by (pi / 180)

Name: Anonymous 2006-09-09 23:41 (sage)

>>56
A bit late, aren't we

Name: Anonymous 2006-09-10 5:34

>>56
Civility and goodwill has finally arrived on 4chan.

Name: Anonymous 2006-09-10 7:17

I SEE WHITE PEOPLE

Name: Anonymous 2006-09-10 11:48

>>56
>>58

Read >>2 and >>3 retards.

Name: Anonymous 2007-06-16 14:30 ID:YHMLKCC0

I went to a random argentine school and I learnt radians.

Name: Anonymous 2007-06-16 14:38 ID:OcIVEwco

hay guys do u hav any free radiens??

Name: Anonymous 2007-06-16 14:43 ID:cKlQ0z/E

Oh lawd the time before IDs.

Name: Anonymous 2007-06-16 20:48 ID:rRdAJbne

dude, raiden kicks ass, hes so much better than johnny cage

Name: Anonymous 2007-06-16 21:18 ID:ZvYB0Acc

lol, shame amerifags.

no real man uses degrees, radians über alles

Name: Anonymous 2007-06-16 21:19 ID:Heaven

using radians is just irrational.

Name: Anonymous 2007-06-16 22:47 ID:rcjWueUl

>>33 confuses his school's  bullshitting with his own accomplishments.

AP MEANS NOTHING. YOUR SCHOOL MEANS NOTHING. RAMANUJAN COULD ROCK ALL YOUR ASSES, AND HE WAS NEVER EDUCATED.

Also underage b&.

Name: Anonymous 2007-06-16 22:49 ID:rcjWueUl

>>61

I went to a randomly-generated argentine school and I learned radians.

Name: Anonymous 2007-06-17 0:29 ID:1ZsPuRWL

>>63
GOTO : I am an expert programmer

ALSO, OP is a retard

Name: Anonymous 2007-06-17 0:35 ID:Heaven

You guys realize this almost a year old, right? Sage this shit

Name: Anonymous 2007-06-17 0:55 ID:1ZsPuRWL

no

Name: Anonymous 2007-06-17 0:57 ID:y4IByiHn

ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉ӧ҉

Name: Anonymous 2007-06-17 3:12 ID:Heaven

jesus christ, this thread makes me not regret killing all those fucking nerds for being complete shitheads.

Name: Anonymous 2007-06-17 6:37 ID:G7AcWG0+

lulz I remember this thread

Name: Anonymous 2007-06-17 6:52 ID:zo01VT92

>>74 haha me too. Epic.

Name: Anonymous 2007-06-17 8:03 ID:top/WWTh

[҉]҉҉҉҉҉҉҉҉҉҉҉҉҉҉҉҉҉҉҉҉҉[/҉]

Name: Anonymous 2007-06-17 12:42 ID:Hj3lAGQ8

>>72,76
EXPERT UNICODE PROGRAMMERS

Name: Anonymous 2007-06-17 13:00 ID:BbWBqdH+

>>77
Too bad Unicode is not Touring-complete... or is it?

Name: Anonymous 2007-06-17 15:40 ID:1ZsPuRWL

UTF-32 and UTF-8 are touring-complete, UTF-16 is not

Name: Anonymous 2007-06-17 15:42 ID:/Sa/dbn1

>>79
at least give some fucking argument why, can you show the equivalence to lambda calculus?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List