필터 지우기
필터 지우기

implicite differenciation to find slope of curve at apoint

조회 수: 1 (최근 30일)
sita
sita 2015년 2월 3일
답변: Mischa Kim 2016년 9월 7일
Hi,
I would like to do some thing like
x^2+y^2=1
d(x^2+y^2)/dx=d(1)/dx
d(x^2)/dx+d(y^2)/dx=0
2x+2y*dy/dx=0
dy/dx=-x/y
but
syms x y
f=x^2+y^2-1
diff(f,x,y)gives
2y
please help..
Thanks,
Sita
  댓글 수: 1
Sung Won Kim
Sung Won Kim 2016년 8월 18일
편집: Sung Won Kim 2016년 8월 18일
It would be better, If you use this When you defining f f=x^2+y^2==1
and I recommend to use syms x y(x) when you defining syms.
last, it is also necessary that diff(f,x) is used to differenciate the f by x (You don't need 'y')
then I think it will give an ans.
good luck
Kim

댓글을 달려면 로그인하십시오.

답변 (1개)

Mischa Kim
Mischa Kim 2016년 9월 7일
Sita, how about
syms x y(x) f(x,y)
f = x^2+y^2-1 == 0;
df = diff(f,x)

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by