Eliminate a component of an equation

2 vues (au cours des 30 derniers jours)
MR JUSTIN ACHARJEE Sumanta
Commenté : Walter Roberson le 8 Déc 2021
%% 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?

Réponses (1)

Walter Roberson
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
MR JUSTIN ACHARJEE Sumanta
hHow should I eliminate h and make an expression for A as a function of 𝑟 and V?
Walter Roberson
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));

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by