Eliminate a component of an equation
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
%% Q9a
clear;clc;
%1
r=0.1:0.01:100;%m
V=1/3*pi.*power(r,2)*h;%m^3
B=sqrt((r^2)+(h^2));
A=r*pi*B;%m^2
By eliminating ℎ, obtain the expression for 𝐴 as a function of 𝑟 and V.
How should I do that?
0 commentaires
Réponses (1)
Walter Roberson
le 8 Déc 2021
V=1/3*pi.*power(r,2)*h;%m^3
If V = something*h then it follows that h = V/something
B=sqrt((r^2)+(h^2));
And that definition for h can be put into B
2 commentaires
Walter Roberson
le 8 Déc 2021
Write out the steps by hand, using unresolved symbols. Find the formula, and program the formula in, possibly using vector r values at that time.
If you want to have MATLAB do it, you can use the Symbolic Toolbox --- but it is really straight forward.
B=sqrt((r^2)+(h^2));
implies
B=sqrt((r^2)+((V/(1/3*pi.*power(r,2)))^2));
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!