View Full Version : don t know how to write formula
johnny_mc
Apr5-11, 03:38 AM
Hi, i have a problem with MATLAB, i just start to use it, and i desperately need help.
Can anyone help me, how can i wrote this formula :
r[1-cos[arc sin (sqrt(2.*R.*DR+DR.^2)+r sin(arc cos (r-k)/r) /r)]]-k
:smile:
n.karthick
Apr5-11, 03:51 AM
Hi, you may refer to help in Matlab for writing equations. I can give few points
Matlab accepts only open brackets () and not closed brackets in equations.
write arc sin(x) as asin(x)
Always use * for multiplication of two variables and even with brackets
For example k(x+1)(x+2) as k*(x+1)*(x+2)
Hope this helps
johnny_mc
Apr9-11, 12:01 PM
hi, i wrote equations like this but it did not help, h = r.*(1-cos(asin((sqrt(2.*R.*DR+DR.^2))+r.*sin(acos(r-k)./r)./r)))-k
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.