mathematic 求解微分方程DSolve[{x'[t]== r*x[t]+b,x[0] == x0},x[t],t

一片奶酪2022-10-04 11:39:541条回答

mathematic 求解微分方程DSolve[{x'[t]== r*x[t]+b,x[0] == x0},x[t],t]
为什么出现错误:DSolve::deqn:Equation or list of equations expected instead of True in the first argument {-b+(x^[Prime])[t]==r x[t],True}.
当我把x换成y时,即DSolve[{y'[t] == r*y[t] + b,y[0] == y0},y[t],t]时却能成功求解,这是为什么?
mathematica求解微分方程中,x只能作自变量,y只能作因变量吗?例如求解x(t),则出现错误。

已提交,审核后显示!提交回复

共1条回复
kang1608 共回答了17个问题 | 采纳率94.1%
我把你的代码复制到mathematic里面:
DSolve[{x'[t]== r*x[t]+b,x[0] == x0},x[t],t]
运行报错,但是如果这么写
DSolve[{x'[t] == r*x[t] + b,x[0] == x0},x[t],t]
就能求出解来
看出上面两句有什么不同了吗?
我靠!你的上面那行的加号是中文输入法里的加号,这不管在哪种程序里都是错的啦.
1年前

相关推荐

怎样利用MATHEMATIC解决这个数学问题,求大神解答.
ff漫步1年前1
xushiqing 共回答了19个问题 | 采纳率94.7%
最直接的解法会导致解不出来,需要结合一点点人工分析,总之:
ρ l a b Integrate[Boole[x^2 + y^2
英语翻译.本论文首先从耦合摆的理论分析入手,得到串联耦合摆和并联耦合摆的运动方程.其次,应用计算工具Mathematic
英语翻译
.本论文首先从耦合摆的理论分析入手,得到串联耦合摆和并联耦合摆的运动方程.其次,应用计算工具Mathematica对微分方程进行数值求解,着重对该模型进行了计算机仿真,画出串联耦合摆和并联耦合摆的运动轨迹,得到了串联耦合摆和并联耦合摆的相图,然会用非线性知识进行定性分析.
magieer1年前1
小虫很强滴 共回答了18个问题 | 采纳率94.4%
This paper starts from the analysis of coupled pendulum theory,the equations of motion are coupled in series and parallel coupled pendulum swing.Secondly,using computational tools of Mathematica numerical solution of the differential equation of the model,a computer simulation,draw the trajectory of series coupled pendulum and the parallel coupled pendulum,the phase diagram of series coupled pendulum and parallel coupled pendulum,and qualitative analysis was done by nonlinear knowledge.
An English Mathematic Problem
An English Mathematic Problem
A baseball diamond is a square with sides of 90 feet.A player,after hitting a home run,loped around the diamond at 10 feet per second.Let s represent the player's distance from home plate after t seconds.
Express s as a function of t by means of a three-part formula.
I am searching for answers not translation into Chinese,thank you all the same!
我是nn1年前1
fengyun111 共回答了21个问题 | 采纳率85.7%
有一边长为90码的棒球场,一运动员在打出一记本垒打后以每秒10码的速度绕球场跑一圈.用s表示该运动员在t秒后距离本垒的距离.
以t为变量的三段方程表达s的函数.
Then you put this question in the right section. Thank you.
用mathematic编程,并写出解题思路,
用mathematic编程,并写出解题思路,
1.10以下的自然数中,属于3和5的倍数的有3,5,6和9,它们之和是23.找出1000以下的自然数中,属于3和5的倍数的数字之和.
2.斐波那契数列中的每一项被定义为前两项之和.从1和2开始,斐波那契数列的前十项为:
1,2,3,5,8,13,21,34,55,89,...考虑斐波那契数列中数值不超过4百万的项,找出这些项中值为偶数的项之和.(提示:可能用到的函数,用法请自行参照帮助文档:EvenQ,Fibonacci,Total,Sum)
3.13195的质数因子有5,7,13和29.
600851475143的最大质数因子是多少?(提示:可能用到的函数,用法请自行参照帮助文档:FactorInteger,Max,/.)
4.2520 是最小的能被1 - 10 中每个数字整除的正整数.最小的能被1 - 20 中每个数整除的正整数是多少
tiankong21年前1
空中的水 共回答了18个问题 | 采纳率88.9%
先求3的倍数,再求5的倍数,然后求他们的并集,然后求和

Total[Union[Table[3*x,{x,1,1000/3}],Table[5*x,{x,1,1000/5}]]]
先求出4百万之内的数列
Table[Fibonacci[x],{x,2,33}]
{1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,
2584,4181,6765,10946,17711,28657,46368,75025,121393,196418,
317811,514229,832040,1346269,2178309,3524578}
选择出来里面的偶数
Select[Table[Fibonacci[x],{x,2,33}],EvenQ]
{2,8,34,144,610,2584,10946,46368,196418,832040,3524578}
接下来求和就行了,总的要是写成一行就是
Total[Select[Table[Fibonacci[x],{x,2,33}],EvenQ]]
结果是4613732
FactorInteger[600851475143]就直接得到质数因子如下:
{{71,1},{839,1},{1471,1},{6857,1}}
最大显然是6857,如果你想一步直接的出来就是如下的
Max[FactorInteger[600851475143][[All,1]]]
直接的出来6857这个数了.




英译汉!从一个反战图片看到的一段话This is not a simpiemathematic gameThings h
英译汉!
从一个反战图片看到的一段话
This is not a simpie
mathematic game
Things happened and we
have no power
To exerctse our veto
But
At least we still have the
right attitude:
Love is more important
than anything
完全按照图片上的抄写下来的,格式、字母大小写,就是这样的,白话文的!
无花无酒只有诗1年前1
胸外科 共回答了20个问题 | 采纳率95%
这不是一个简单的数学游戏,事情发生了但我们没有力量去否决.但是只是我们仍有正确的态度.爱比任何东西都更重要!
英语中mathematic; mathematical两词有什么区别?
ljm78051年前3
冷酷无情者 共回答了15个问题 | 采纳率66.7%
mathematics n, 数学
mathematical adj. 数学的
在一些字典中有 mathematic 亦作为形容词,“数学的”,但在“现代高级英汉双解辞典”(牛津大学)中无此字.我建议你不要用这个字.
怎么用Mathematic来绘制动力系统的离散点,
怎么用Mathematic来绘制动力系统的离散点,
简单来说,就是进行数列递推公式的迭代
比如a(n+1)=an*(an+2)
随便_伊1年前1
chy202128 共回答了20个问题 | 采纳率90%
看标题吓我一跳,还好里面有数学式……很简单啊,比如:
RecurrenceTable[{b[1] == 1,b[k + 1] == b[k] (b[k] + 2)},b,{k,1,10}]
初值我随便赋的.
英语翻译小学数学概念教学的研究 The research of elementary school mathematic
英语翻译
小学数学概念教学的研究 The research of elementary school mathematics concept teaching这是我自己翻译的,求教:
lin198303041年前3
牛市经纬 共回答了11个问题 | 采纳率90.9%
你翻译的也对,但读起来稍显拗口
这句话的汉语可以这样调整:
关于小学数学概念的教学研究
The teaching study/research on/about maths concept of elementary school
方程xlnx=c怎么解c是常数,用mathematic或matlab解也可以,wacs5先生你的解我不怎么看得懂,能否稍
方程xlnx=c怎么解
c是常数,用mathematic或matlab解也可以,
wacs5先生
你的解我不怎么看得懂,能否稍微解释下
flashwind1年前2
rina3k 共回答了24个问题 | 采纳率100%
Matlab解
c=10;
syms x;
p=x*log(x)-c;
vpa(solve(p,x))
前三行应当没有问题吧.
第四行,你拆成两步.
xx=solve(p,x)
xxx=vpa(xx)
以下注释
xx=solve(p,x),就是求解以x为变量的方程,方程为p=0,也就是说求解以x为变量x*log(x)-c=0的解xx.当然MATLAB尽量往解析解上靠,得到的结果是xx=10/lambertw(10),中间那个lambertw是一个函数.具体形式我也不知道.
xxx=vpa(xx),vpa的意思就是取近似值.我们就得到xx的近似值.
mathematic和mathematical这两个形容词的区别,用法以及意义上的不同,求例句以及详解
mathematic和mathematical这两个形容词的区别,用法以及意义上的不同,求例句以及详解
不要复制黏贴,万分感谢
wangguangwei1年前1
luglian 共回答了13个问题 | 采纳率61.5%
Mathematic偏重指数学理论研究
1. These include areas like history, literature, mathematic and science.
包括历史,文学,数学和自然科学.
2. Romberg integration algorithm: a method for integrating mathematic functions, in MATLAB.
龙贝格积分算法:一种方法,把数学函数,在MATLAB环境中.
3. The mathematic problem must be solved by complex QR decomposition algorithm. 这个数学题必须用复数QR分解算法解答.
Mathematical侧重指数学那个科目
eg.He invented a mathematical theory of games.
他发明了与游戏有关的数学理论.
我用的这种百度不好复制,这都是我查了词典后打出来的.建议您使用牛津的那个什么词典,很权威,现在都有第六版了哈!
mathematic 中计算排列(A)和组合(C)的函数是什么?
越野兔子1年前1
弘远咬着牙 共回答了13个问题 | 采纳率100%
组合数用Binomial[n,m],表示n!/( m!(m-n)!)
排列数用Pochhammer[a,n],表示a (a+1)...(a+n-1)
以下是英文原版解释:
Binomial[n,m]
gives the binomial coefficient (n,m).
Pochhammer[a,n]
gives the Pochhammer symbol Subscript[(a),n].
英语 纠正错误I am reading the textbook,It's a beautiful mathematic
英语 纠正错误
I am reading the textbook,It's a beautiful mathematics.Although I didn't like it,But I must studied it.
深圳忘记过去1年前3
molongzhan 共回答了17个问题 | 采纳率88.2%
although 和 but 不能同时用:都是连词,连词连接两个句子,且although就有:“尽管,但是“的意思.
用mathematic求微分方程的特解,题的算法如图,但是在mathematic中我输入的命令总是出不来结果啊.
用mathematic求微分方程的特解,题的算法如图,但是在mathematic中我输入的命令总是出不来结果啊.

其中N和k都是常数

这是我输入的命令

DSolve[{(x'[t] - k*x*(N - x)) K0, x[0] K (1/4) N}, x[t], t]

输出的结果不是如题那样


arcsin1231年前1
san123 共回答了13个问题 | 采纳率76.9%
你的语法根本莫名其妙嘛:
DSolve[{x'[t] == k x[t] (n - x[t]) , x[0] == (1/4) n}, x[t], t]

(* {{x[t] -> (E^(k n t) n)/(3 + E^(k n t))}} *)
y=6x的图用mathematic怎么画?x取值为0到1,y取值也为0到1
NovXXVii1年前1
475155743 共回答了21个问题 | 采纳率81%
……你的前提真没自相矛盾吗?x由0到1的话,y就应该是0到6,还是说你想要的是有一截空白的那种图呢?那也行:
Plot[6 x,{x,0,1},PlotRange -> {0,1}]
mathematic怎样求正态分布
mathematic怎样求正态分布
98.5 3
92.5 2
88.5 5
82.5 9
78.5 12
72.5 10
68.5 7
62.5 5
58.5 2

这组数据大致符合正态分布,请问我应该怎样用mathematic求出μ和σ?
赵子龙长1年前1
猪也爱PP 共回答了25个问题 | 采纳率96%
可以看看函数 FindDistributionParameters 的用法吧
data = {{98.5, 3}, {92.5, 2}, {88.5, 5}, {82.5, 9}, {78.5, 12}, {72.5,
10}, {68.5, 7}, {62.5, 5}, {58.5, 2}} /. {a_, b_} :>
Table[a, {b}] // Flatten;
FindDistributionParameters[data, NormalDistribution[[Mu], [Sigma]]]
输出结果:

{[Mu] -> 77.1182, [Sigma] -> 9.78959}
求助mathematic离散数据{d,y}作图问题:For[i=1,i
求助mathematic离散数据{d,y}作图问题:For[i=1,i
For循环中可以算出10对d和y的值,怎样用离散序列画出来
水鱼情1年前1
ncszw 共回答了15个问题 | 采纳率93.3%
当然要在循环里面画了,如果在外面,只画出结果图.
the man speaking at the meeting is a professor___ mathematic
the man speaking at the meeting is a professor___ mathematics填介词
上上下下的快乐1年前3
无声无息2007 共回答了14个问题 | 采纳率92.9%
of 就是这样一种说法
mathematic里求定义域要用什么函数?
mathematic里求定义域要用什么函数?
例如我想在mathematic软件里计算这个函数y = 1/Sqrt[x^2 - x - 6] + lg (3 x + 8)定义域该如何去算呢?具体的操作是怎样的?
下辈子去天堂1年前1
距离-美 共回答了17个问题 | 采纳率100%
没有专门的函数,要具体问题具体分析.Reduce,Minimize,Maximize应该都比较有用.
__
你应该是要在实数域里找它的定义域吧,那么:
Reduce[1/Sqrt[x^2 - x - 6] + Log[3 x + 8] < Infinity, x, Reals]
这题选择2.但是mathematic不是形容词吗?后面刚好接名词.为什么不选择1呢?
这题选择2.但是mathematic不是形容词吗?后面刚好接名词.为什么不选择1呢?
All the people at the conference are ( ) .
1.mathematic teachers 2.mathematics teachers
saddydream1年前4
悠然人生 共回答了19个问题 | 采纳率89.5%
因为化学老师是chemistry teacher,而不是chemical teacher.因此我们可以看出,teacher前面的限定词是一个名词,而不是形容词.
mathematic中4
冰凌沫儿1年前3
cqtxb 共回答了23个问题 | 采纳率95.7%
4 #1^9
可能是:4乘以10的9次方.
因为#不是数学符号,可能是*的误写.而1的9次方没有任何意义.^ 是幂(次方)的意思
正确表达方法应该是:4 *10^9
英语翻译Modern group theory,a very active part of the mathematic
英语翻译
Modern group theory,a very active part of the mathematical discipline abstract algebra studies groups in their own right.
maixiaoxiao1年前1
逝梦1234 共回答了19个问题 | 采纳率84.2%
in their own right adv.凭本身的头衔
求大师指导~语法题He is a mathematics teacherHe is a mathematic teach
求大师指导~语法题
He is a mathematics teacher
He is a mathematic teacher
哪个是对的?
pianaini1年前2
tianwen168 共回答了18个问题 | 采纳率100%
He is a mathematics teacher对 这是名词作定语
He is a mathematic teacher错 因为没有 mathematic这个词 就算是形容词作定语也不对 因为本句是表示性质的 指的是教数学的老师
mathematic中求解出现奇怪的问题
mathematic中求解出现奇怪的问题
In[27]:= Reduce[{a x + y == 0,2 x + (1 - a) y == 1},{x,y}]
:6B63:5728:8BA1:7B97In[27]:= Reduce::ivar:{Root[2-4 #1+#1^5&,1,0],Root[2-4 #1+#1^5&,2,0],Root[2-4 #1+#1^5&,3,0],Root[2-4 #1+#1^5&,4,0],Root[2-4 #1+#1^5&,5,0]} is not a valid variable.
Out[27]= Reduce[{{a x + Root[2 - 4 #1 + #1^5 &,1],
a x + Root[2 - 4 #1 + #1^5 &,2],
a x + Root[2 - 4 #1 + #1^5 &,3],
a x + Root[2 - 4 #1 + #1^5 &,4],
a x + Root[2 - 4 #1 + #1^5 &,5]} ==
0,{2 x + (1 - a) Root[2 - 4 #1 + #1^5 &,1],
2 x + (1 - a) Root[2 - 4 #1 + #1^5 &,2],
2 x + (1 - a) Root[2 - 4 #1 + #1^5 &,3],
2 x + (1 - a) Root[2 - 4 #1 + #1^5 &,4],
2 x + (1 - a) Root[2 - 4 #1 + #1^5 &,5]} ==
1},{x,{Root[2 - 4 #1 + #1^5 &,1],Root[2 - 4 #1 + #1^5 &,2],
Root[2 - 4 #1 + #1^5 &,3],Root[2 - 4 #1 + #1^5 &,4],
Root[2 - 4 #1 + #1^5 &,5]}}]
为什么会出现这么多东西……?
irainbow1年前1
区号028 共回答了20个问题 | 采纳率90%
一看就知道是变量没清.你的y现在肯定是黑色的.在你的代码前加一句
Clear[y]
就行了.
集合在mathematic中怎么表示
集合在mathematic中怎么表示
IN={i|g[i]
柯281年前2
幸运白开水 共回答了18个问题 | 采纳率100%
y={x|x≤0}