cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

calulation of slope

pbreuer
1-Visitor

calulation of slope

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

5 REPLIES 5
nas0k
12-Amethyst
(To:pbreuer)

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.

pbreuer
1-Visitor
(To:nas0k)

Hi!

attached the worksheet.

BR
Paul

the degree isn't a recognised unit, slope 100% is giving you a result of 1.Capture.PNG

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:-

RichardJ
19-Tanzanite
(To:pbreuer)

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.

Announcements

Top Tags