Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Cant get the Subs to input into my partial Derivatve

조회 수: 1 (최근 30일)
frank molinari
frank molinari 2015년 9월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
This is my Code
%
syms R1 R2 R3 R4 R5 R6 R7
f=R1+((R2+((R4*(R5+R6+R7))/(R4+R5+R6+R7)*R3))/((R3+R2+(R4*(R5+R6+R7))/(R4+R5+R6+R7))));
P=diff(f,R1);
subs(P,{R1,R2,R3,R4,R5,R6,R7},{220,150,270,100,330,47,390})
and to check it partial with respect to R1 shold be 220 I keep getting 1
Im trying to take the partial derivative of a long formula for Resistor Eq. and cant get the final value to display. Please help

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 18일
Your expression has R1 plus an expression that does not involve R1. Differentiate with respect to R1 and the answer is going to be diff(R1,R1) + diff(something independent of R1,R1) which is going to be 1 + 0 = 1.

Community Treasure Hunt

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

Start Hunting!

Translated by