Undefined f tand for input arg sym
Show older comments
I receive error "Undefined function 'tand' for input arguments of type 'sym' at line:
v = ...* tand(ea/2));
I tried replacing this 'ea' with any numerical value which resulted in the same error message but for 'cosd':
x = cosd(ea)...
any help would be much appreciated
ea = m + (180/pi20)* ec * sind(m)* (1 + ec *cos(m));
keeplooping = true;
while ea > 0.005
E1 = (ea - (180/pi20)* ec *sind(ea)-m)/(1-ec *cosd(ea));
E1 = ea;
keeplooping;
if ea <= 0.005
keeplooping = false
return
end
end
v = 2*atand((sqrt(1+ec))* tand(ea/2));
r = (a *(1-(ec^2))/(1+ec* cosd(v)));
x = cosd(ea) - ec;
y = sind(ea) * sqrt(1 - ec* ec);
r = sqrt(x*x + y*y);
v = atand2(y,x);
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!