Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ilogic Math Tan

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
craigzcool
6626 Views, 5 Replies

ilogic Math Tan

ilogic is calculating tan/sin/cos/aTan/aCos/aSin incorrectly. I dont know where to start to fix the problem

 

e.g. 

MessageBox.Show(Atan(35))

Answer = 0.4738... when it should be 0.7002....

 

Any ideas anyone?

 

 

 

 

5 REPLIES 5
Message 2 of 6

MsgBox(Atan(35)) gives the result  1.54223266895614 rad.


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Message 3 of 6
jdkriek
in reply to: craigzcool


craigzcool wrote:
MessageBox.Show(Atan(35))

Answer = 0.4738... when it should be 0.7002....

 

Any ideas anyone?


I think you are looking for Tan and results in degrees

Tan(35) results in 0.4738 Radians (which is what you are seeing)

Convert Radians to Degrees and you will see 0.7002 Degrees

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 4 of 6
adam.nagy
in reply to: craigzcool

Hi,

 

Did Jonathan answer your question?

If so could you please set it as an accepted solution?

 

Thank you,



Adam Nagy
Autodesk Platform Services
Message 5 of 6
craigzcool
in reply to: adam.nagy

Sorry, i didnt get notified through email about the 1st responce. Yes that answers my question perfectly Thanks a lot!  🙂 

Message 6 of 6
jdkriek
in reply to: craigzcool

Glad that explained it for you 😉

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report