MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]参数如何带入? (https://www.labfans.com/bbs/showthread.php?t=4793)

docxin 2008-10-11 09:33

[求助]参数如何带入?
 
对于参数方程:x=ln(cos(t)),y=cos(t)-t*sin(t),求导数dy/dx在t=pi/3的值?
syms t;
x=log(cos(t));
y=cos(t)-t*sin(t);
f=diff(y,t)/diff(x,t);
这时的t=pi/3如何代入f中?

meteora1005 2008-10-11 10:28

回复: [求助]参数如何带入?
 
定义t时这样定义:t=sym(pi/3),t就是符号数字了。

docxin 2008-10-12 15:19

回复: [求助]参数如何带入?
 
多谢了!
syms t;
x=log(cos(t));
y=cos(t)-t*sin(t);
f=diff(y,t)/diff(x,t);
t=sym(pi/3);
这时要把 f 的表达式再输入一次,才能得到结果。


所有时间均为北京时间。现在的时间是 06:23

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.