Author Topic: Solving equation with cosh and coth  (Read 874 times)

Offline mrcannibal

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
Solving equation with cosh and coth
« on: April 12, 2011, 11:14:27 AM »
Hi, I need the numerical solution of C. But i get an Error: argument must be of 'Type::Arithmetical' [sinh]!
Can you help me the code please! It would be of great help!!
Thank you

syms x

Bi = 0.43;

t = -16.9;

N = x/(2*Bi)+ t/2;

y = 2*(1-coth(x))*(cosh(x)-cosh(N))+x/((2*Bi)*exp(-N))+(1-coth(x)/(2*Bi))*x*sinh(x);

P = solve(y);

M = P/(2*Bi)+t/2;

C = (P^2/sinh(P)^2)*exp(-M)*(cosh(P)-cosh(M));
Comment on this Answer

Matlab and SimuLink Development Forum

Solving equation with cosh and coth
« on: April 12, 2011, 11:14:27 AM »