Sketching a Catenary

I'm trying to use the equation driven curve tool to sketch a catenary y=a*cosh(x/a) but keep getting told that it is an invalid equation. I generated some random data to test P1 (0,0) P2 (0,10) S=15 h=10 v=0 I found a to be 0.7365. Anyone care to tell me why the equation is invaild?

SolidworksSketching
Answers 4
JS
JS 2014-01-23 Best Answer

SW doesn't accept hyperbolic functions like cosh in equations or equation driven curves.  Try the longer form:

0.5*a*(exp(t/a) + exp(-1*(t/a)))

Jim S.

SF
SF 2015-04-17

I agree that SW doesn't like COSH(a), but I just want to point out that the help file says that SW does do hyperbolic cosine.  See the link.

2012 SOLIDWORKS Help - Functions: COSH

Maybe SW programmers need to talk to SW help file writers.  I cannot make this work for an equation derived function either.

DA
DA 2022-09-23

The expression doesn't work because "a" need to be in double quotes, and it needs to be defined as a global variable.  You also need to make sure you are using a parametric equation type rather than an explicit.

DA
DA 2022-09-23

*needs  (sorry)