Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello!
i have some problems with the calculation of slope.
In my calculation I would like to define the slope in %, and calculate in the furhter sheet with the correct result in degrees (e.g. 100% slope should be 45°).
But my problem is, If I define:
slope:=100%
and try to change in the next step to get the result with unit ° or deg, but i get:
slope=57.296°
Is there anyone who knows the problem and the solution for this topic?
Many thanks in advance!
Paul
Can you provide your worksheet? That may help the collab provide a solution. Use the advanced editor on the R.H. side of the window to add your sheet.
the degree isn't a recognised unit, slope 100% is giving you a result of 1.
But equally this is 1 radian, and when you "convert" it to degree it gives you 57.2...°
Hope this explains what is happening,
try angle := slope*90°
Regards
Andy
You are specifying the tangent of the angle when you state the slope, not the angle itself. Thus:-
Degrees are not a unit of slope. The slope is the ratio of two numbers, the change in y divided by the change in x, and is unitless. The angle is the arctan of the slope.