问题标签 [dsolve]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
matlab - dsolve 生成不一致的输出
我已经玩了一段时间了,谁能解释为什么我从 Code1 和 Code2 得到不同的答案?'dsolve()' 的实际脚本是什么使 2 个代码的输出不同?如果我只是使用不同的语法(即',;".'),输出会相同吗?
我不明白的 dsolved 函数是什么?
ode - dsolve 在尝试求解 ODE 系统时抛出错误
其中 A 是一些 10x10 矩阵,X_0 是一个包含 10 个元素的列向量,其值是预先计算的。当我编译这段代码时,Matlab 会抛出以下错误:
使用 mupadengine/feval 时出错(第 157 行) MuPAD 错误:错误:无效的方程。[颂歌::新]
dsolve>mupadDsolve 中的错误(第 325 行)T = feval(symengine,'symobj::dsolve',sys,x,options);
dsolve 中的错误(第 186 行) sol = mupadDsolve(args, options);
谁能告诉我发生了什么以及整改是什么?我使用 Matlab R2012a。
math - Mathematica DSolve diff. 特定域上的方程
我正在寻找一种方法来解决以下微分方程:
因此,我尝试 DSolve 将 z>0 与 z<0 区分开来,例如:
但我还是不行。也许明确添加域会有所帮助,但我找不到这样做的方法。
有谁知道如何做这些事情?
感谢您的帮助和时间
matlab - 如何在 dsolve 命令-MATLAB 中包含分段函数?
我正在寻找一种在 dsolve 命令中包含分段函数的方法,以求解二阶微分方程。如果 H(x),G(x),F(x) 是常数,Dsolve 工作正常,但我需要它们成为分段符号函数。谢谢。
(例如,对于 (0<=x<0.5),H(x)= 0.5,对于 (0.5<=x=<1),H(x)= 1)
wolfram-mathematica - 在数学中使用 Dsolve
我正在使用 dsolve 找到涉及磁共振的薛定谔方程的求解微分方程,但出现错误。
从此我得到了答复
过度确定。
我看到 3 个方程和 3 个未知数,所以我真的不知道它为什么这样做。任何帮助,将不胜感激。
sympy - sympy dsolve的自定义任意常量名称?
有没有办法让 getdsolve()
使用由与 C1、C2 等不同的序列命名的任意常量?
cse()
允许一个symbols
接受无限名称生成器的参数,但我没有看到与dsolve()
.
我正在求解充满符号电容的电路方程,而dsolve
常数变得令人困惑。
如果做不到这一点,是否有一种快速的方法可以将任意常量替换为其他常量,例如 k_1、k_2 等?看起来像是dsolve()
使用 C1、C2 等作为其常数,而我的代码使用 C_1、C_2 等作为电容。我可以在任何地方更改我的命名以使用非标准电容符号,但我不希望这样做。
感谢@Marshmallow,我开始使用这个包装 dsolve 的例程,让我在事后更改符号。仍然存在碰撞的风险,但现在已经足够了:
r - 每次使用不同参数在循环中求解微分方程 R
我想,这应该很简单。我正在用 R 数值求解一组微分方程。当我这样做时,它很好。但是我需要测试几组参数的微分方程组,因此我使用的是循环。问题是对于所有参数集,它显示相同的值,这是不对的。
wolfram-mathematica - Analytical solution of driven damped oscillator with aperiodic conditions using DSolve from Wolfram Mathematica
I derived a solution for a driven damped oscillator using the DSolve functionality of Wolfram Mathematica. I chose the following Ansatz:
Mathematica is able to solve this analytically and I can derive solutions if I pass parameters to the variables.
Anyhow, the derived solution fails at the moment, the given parameters for mass (m), spring constant (k) and dampening (d) fulfill the condition for aperiodic behavior
due to the fact, that a division by zero occurs. The overall solution is given by a big fraction with a denominator containing the following factor
This factor becomes zero in case aperiodic conditions occur which leads to a devision by zero.
Now the fun starts ... I case I pass the aperiodic conditions before giving the system to DSolve:
DSolve easily derives a working solution without dividing by zero.
It seems to me, as Mathematica is simplifying the more general solution, in a way that I can't use the aperiodic conditions anymore, even though there is a working solution for that case. My question is, can I somehow tell DSolve, to take into account the aperiodic conditions?
Sure, I can workaround the problem with Piecewise[], but for further calculations a general solution without Piecewise[] would be more suitable.
Thanks in advance for you time and help,
Greetings Tschibi
python - Python sympy 解决错误
重新安装Python后,如下简单代码
给出以下输出:
但之前它曾经给我正确的答案:
f(x) == -2.0/(C1*exp(-3.0*x) - 1.0)
。
有人可以帮我解决这个问题吗?
matlab - Matlab:dsolve条件不工作
我正在尝试求解由变量 eqn1 和 eqn2 给出的微分方程组。
如果我没有指定条件 c1 和 c2 并且只运行:
然后一切都很好,我得到:
但是一旦我尝试指定 n1(0) 和 n2(0),正如您在源代码中看到的那样,我会收到以下警告:
而且我无法绘制结果。我在那里想念什么?如何以正确的方式指定条件,以便获得可绘制的结果?