0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ベルヌーイ方程式「今週の微分方程式 #7」をwolframalphaとsympyでやってみたい。

Last updated at Posted at 2023-03-24

1min.– わんみん様の計算との違いがわかりませんでした。申し訳ありません。
・wolframで,
ベルヌーイ方程式 Bernoulli's equation
常微分方程式の分類 一階非線形常微分方程式
ODE classification first-order nonlinear ordinary differential equation 
・sympyのplotでグラフがでます。

オリジナル

wolframで

English

点検?

勉強中

sympyで

plotでグラフがでます。

# y=xy'+y3e^x^2
from sympy import *
x = Symbol  ('x',real=True)
y = Function('y')(x)
var('C1')
ans=dsolve( Eq(y,x*diff(y)+y**3*exp(x**2) ) )
print("#",ans[0].rhs)
print("#",ans[1].rhs)
plot (ans[0].rhs.subs({C1:1}),ans[1].rhs.subs({C1:1})) 
# -x*sqrt(1/(C1 + exp(x**2)))
# x*sqrt(1/(C1 + exp(x**2)))

縦横比は異なります。

0png.png

参考

#7まで

 

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?