![]() |
|
#1
|
|||
|
|||
Rewrite the function atan2fIm doing some exercises from a book, and in one of them i have to rewrite the function atan2f. First, i wanted to explore a bit about this function, and while doing this i noticed that the results given by this function differed from the ones given in the book. For example, the book says that atan2f(4,2) = 63.46(degrees) and when i do this:
CPP / C++ / C Code:
Maybe i misunderstood the excercise. This is the exercise: Code:
Last edited by LuciWiz : 21-Nov-2008 at 09:35.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
||||
|
||||
Re: Rewrite the function atan2fThe return value of 1.1 does not mean 1.1pi. It mean 1.1 radians. Multiply that by 180/pi to get degrees, and your answer will agree with the answer in the book.
__________________
www.blake-foster.com |
|
#3
|
|||
|
|||
Re: Rewrite the function atan2fHow to code this function ? What this function does ?
|
|
#4
|
||||
|
||||
Re: Rewrite the function atan2f__________________
www.blake-foster.com |
|
#5
|
|||
|
|||
Re: Rewrite the function atan2fThanks for your help..
|
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| run script command on ns2.26 | newbie06 | Computer Software Forum - Linux | 65 | 19-Aug-2009 08:50 |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| Flex and bison coding | lucky88star | C++ Forum | 5 | 24-Dec-2007 12:57 |
| Need Help with input files. | Efferus | C++ Forum | 2 | 24-Nov-2007 17:19 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 14:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The