![]() |
我们如何在dsolve命令中使用先前存储的符号表达式而无需剪切和粘贴
哈罗,朋友,我们有以下问题
syms t u0 u1 u0=sin(t); R1= diff(u0,'t',2)+u0-u0^3; u1=dsolve('D2u1+u1=R1','t') gives the ans u1=R1+c1*sin(t)+c2*cos(t). 但是它不使用R1的值。我们该怎么做。请告诉我。 提前致谢 [B]回答:[/B] 对造成的不便表示歉意。我得到了我的问题的答案: 符号t u0 u1 u0 = sin(t); R1 = diff(u0,'t',2)+ u0-u0 ^ 3; eq1 = strcat('D2u1 + u1 =',char(R1)); u1 = dsolve(eq1,'t') 将使用R1的值返回答案。 [url=https://stackoverflow.com/questions/3287181]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 01:01。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.