Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Arctangent formula units

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
1730 Views, 5 Replies

Arctangent formula units

I noticed strange behavior while entering expression into edit dimension box IV sp3. I entered “atan (1/2)” where 1 and 2 are sides of the triangle. When I click on the dimension to edit value I got “atan (1 deg / 2 deg)”. I think 1 and 2 should be in linear units or unitless. Is it a glitch or I am missing something?

Thanks
Igor
5 REPLIES 5
Message 2 of 6
dan_inv09
in reply to: Anonymous

Inventor automatically assigns the units that apply to the dimension to any numbers that don't have them.
Your angle should be in degrees so any number you do not type a unit for will be assigned the unit of degrees.
If you want something else just type it yourself.

Be careful if you are using another dimension in your formula.
If you want atan(d0/d1) you will be okay because d0 = .2 in and d1 = .4 in
but if you have atan(d0/2) it won't work because it expects degrees and it will assume it's inches/degrees. You will have to explicitly type atan(d0/2 in)
Message 3 of 6
Anonymous
in reply to: Anonymous

If I remember my trig correctly arctangent does NOT expect angular units as an argument. It expects unitless value. The result it returns should be in angular units (degrees). So if IV assumes units for the values of the sides of the triangle I type it should assume linear units , not degrees. Result is still correct just formula looks wrong. I posted this in case ADSK wants to fix it.

Igor
Message 4 of 6
dan_inv09
in reply to: Anonymous

I messed up my description of what the error would say, I should have actually tried it first.


I thought Inventor was just putting in units based on what the dimension was but I just tried it with other trig functions and it put deg for those. Maybe it just assumes deg for any trig function.

It's probably best to avoid letting Inventor guess what units are needed in any formula.
Message 5 of 6
Inv_kaos
in reply to: Anonymous

It doesn't matter what units they use, the actual expression used by atan must be unitless, since they cancel out who cares. Inventor would assume degrees because the output of the function is degrees. If you want to change it to "mm" or "in" or "lengths of string", go ahead but I wouldn't waste time on it since it will not affect your result.

Regards
Stew
Please mark as "Accept as Solution" if it answers your question or "Kudos" if you found it useful.
---------------------------------------------------------------------------------------------------------------------
Stew, AICP
Inventor Professional 2013, Autodesk Simulation Multiphysics 2013
Windows 7 x64 Core i7 32GB Ram FX2000
Message 6 of 6
Anonymous
in reply to: Anonymous

Inventor should not assume that argument of the function is the same units as a value returned by the function. If that is a glitch it may matter in some other places. In case of atan units cancel out so it works, just looks ugly. You are right, we should not waste time on it - ADSK should.

Thanks for listening.

Igor

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

Post to forums  

Autodesk Design & Make Report