How to write formula using symbolic package?

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?

답변 (3개)

David Hill
David Hill 2020년 11월 9일

0 개 추천

s=@(c)c^2*pi/4;%function
symbolically
syms s c
eqn=s==c^2*pi/4;
Walter Roberson
Walter Roberson 2020년 11월 9일

0 개 추천

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
Karolis Kazlauskas 2020년 11월 10일

0 개 추천

It worked, thanks for your help!

카테고리

태그

질문:

2020년 11월 9일

답변:

2020년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by