Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16872 > unrolled thread
| Started by | Zohreh <zmmohamadi@gmail.com> |
|---|---|
| First post | 2014-04-29 05:33 +0000 |
| Last post | 2014-05-02 06:19 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Differential Equation Zohreh <zmmohamadi@gmail.com> - 2014-04-29 05:33 +0000
Re: Differential Equation psycho_dad <s.nesseris@gmail.com> - 2014-04-30 05:39 +0000
Re: Differential Equation David Reiss <dbreiss@gmail.com> - 2014-04-30 05:41 +0000
Re: Differential Equation Zohreh <zmmohamadi@gmail.com> - 2014-05-02 06:19 +0000
| From | Zohreh <zmmohamadi@gmail.com> |
|---|---|
| Date | 2014-04-29 05:33 +0000 |
| Subject | Differential Equation |
| Message-ID | <ljndih$au0$1@smc.vnet.net> |
Dear Friends, I am going to solve the following differential equation: dY(x)/dx=A*f(x)-B*Y(x) In which A and B are some parameters, f(x) is a function of x, and Y(C)=0 (C is a parameter). I tried to solve it in Mathematica by DSolve[Y'[x] == A*f[x] - B*Y[x], Y[C] == 0, x] But I get the following error DSolve::dsfun: "Y[C]==0 cannot be used as a function I would highly appreciate it if somebody can help me. Best regards.
[toc] | [next] | [standalone]
| From | psycho_dad <s.nesseris@gmail.com> |
|---|---|
| Date | 2014-04-30 05:39 +0000 |
| Message-ID | <ljq2b5$l8a$1@smc.vnet.net> |
| In reply to | #16872 |
Hi,
The correct syntax is this:
DSolve[{Y'[x] == A*f[x] - B*Y[x], Y[C] == 0}, Y[x], x]
Notice the brackets {} and the Y[x]. See the help of DSolve for more examples etc.
Cheers
[toc] | [prev] | [next] | [standalone]
| From | David Reiss <dbreiss@gmail.com> |
|---|---|
| Date | 2014-04-30 05:41 +0000 |
| Message-ID | <ljq2f0$l9r$1@smc.vnet.net> |
| In reply to | #16872 |
Check the syntax for the proper use of DSolve. You are looking for
DSolve[{Y'[x] == A*f[x] - B*Y[x], Y[C] == 0}, Y, x]
Also note that C is a reserved symbol in Mathematica. Generally you should avoide using capital letters for your parameters and functions
On Tuesday, April 29, 2014 1:33:05 AM UTC-4, Zohreh wrote:
> Dear Friends,
>
>
>
> I am going to solve the following differential equation:
>
> dY(x)/dx=A*f(x)-B*Y(x)
>
>
>
> In which A and B are some parameters, f(x) is a function of x, and Y(C)=0 (C is a parameter).
>
>
>
> I tried to solve it in Mathematica by
>
> DSolve[Y'[x] == A*f[x] - B*Y[x], Y[C] == 0, x]
>
>
>
> But I get the following error
>
> DSolve::dsfun: "Y[C]==0 cannot be used as a function
>
>
>
> I would highly appreciate it if somebody can help me.
>
>
>
> Best reards.
C
[toc] | [prev] | [next] | [standalone]
| From | Zohreh <zmmohamadi@gmail.com> |
|---|---|
| Date | 2014-05-02 06:19 +0000 |
| Message-ID | <ljvdd4$bat$1@smc.vnet.net> |
| In reply to | #16872 |
On Tuesday, April 29, 2014 1:33:05 PM UTC+8, Zohreh wrote: > Dear Friends, > > > > I am going to solve the following differential equation: > > dY(x)/dx=A*f(x)-B*Y(x) > > > > In which A and B are some parameters, f(x) is a function of x, and Y(C)=0 (C is a parameter). > > > > I tried to solve it in Mathematica by > > DSolve[Y'[x] == A*f[x] - B*Y[x], Y[C] == 0, x] > > > > But I get the following error > > DSolve::dsfun: "Y[C]==0 cannot be used as a function > > > > I would highly appreciate it if somebody can help me. > > > > Best regards. Thanks to all for your help. Best regards.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web