Answers given as equation

1 次查看(过去 30 天)
Hello,
I have the equation;
% Radius = r
r = 10*u.ft;
SurfaceAreaOfASphere = (4*pi*r^2)
Returning an answer of;
400*pi*[ft]^2
But I want an answer without pi. In a sense evaluate the expression, any ideas?

采纳的回答

John D'Errico
John D'Errico 2018-8-25
Do you mean this?
vpa(SurfaceAreaOfASphere)
ans =
1256.6370614359172953850573533118*[ft]^2

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by