How to write formula using symbolic package?
Afficher commentaires plus anciens
Hey, I have one problem witch one stopping me from moving further so mayby someone of you could help me? I want to write this formula - S=C*C/4*pi but every time saying that C haven't have any value but I don't want to give any values is it possible to do it?
Réponses (3)
David Hill
le 9 Nov 2020
s=@(c)c^2*pi/4;%function
symbolically
syms s c
eqn=s==c^2*pi/4;
Walter Roberson
le 9 Nov 2020
syms C
S = C*C/4*pi
This requires the Symbolic toolbox.
I suggest checking to see in case the 4*pi should all be on the denominator,
syms C
S = C*C/(4*pi)
Karolis Kazlauskas
le 10 Nov 2020
0 votes
Catégories
En savoir plus sur Assumptions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!