Notation with DSOLVE is unclear

1 回表示 (過去 30 日間)
Gian Lorenzo
Gian Lorenzo 2013 年 5 月 15 日
I am solving this differential equation
syms y(x)
dsolve(diff(y) == 4/100*y)
that gives
C4*exp(x/25)
What does the C4 means? I know there should be a constant representing the degree of freedom, but I noticed that if I change the coefficient in my equation the C. changes.
I am confused, it's just a way of indexing different constants, or is that a multiplier(the * is missing though)?

採用された回答

Walter Roberson
Walter Roberson 2013 年 5 月 15 日
It is just a way of indexing different constants. Also, if you run the same equation through twice you will probably get out two different constants, which is done so that you do not accidentally tie the equations together. For example,
A = dsolve(eqn1);
B = dsolve(eqn1);
C = [A, B];
Then the two parts of C need to have different constants (after all, they might represent different initial conditions), so dsolve() will emit different C* symbols.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by