Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15195 > unrolled thread

f'[0]=0.5 is True?

Started bymariusz sapinski <mariusz.sapinski@gmail.com>
First post2013-07-18 06:43 +0000
Last post2013-07-20 09:50 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  f'[0]=0.5 is True? mariusz sapinski <mariusz.sapinski@gmail.com> - 2013-07-18 06:43 +0000
    Re: f'[0]=0.5 is True? "Nasser M. Abbasi" <nma@12000.org> - 2013-07-20 09:50 +0000

#15195 — f'[0]=0.5 is True?

Frommariusz sapinski <mariusz.sapinski@gmail.com>
Date2013-07-18 06:43 +0000
Subjectf'[0]=0.5 is True?
Message-ID<ks82qt$jne$1@smc.vnet.net>
Dear All,

I'm trying a simple exercise:

eqn = f''[x] + 2 f'[x] + 30 f[x] == 0;
Clear[f];
Clear[x];
eqn1 = f[0] == 1;
eqn2 = f'[0] == 0.5;
DSolve[{eqn, eqn1, eqn2}, f[x], x]


and I get:
DSolve::deqn: Equation or list of equations expected instead of True in the first argument {30 f[x]+2 (f^\[Prime])[x]+(f^\[Prime]\[Prime])[x]==0,f[0]==1,True}. >>

so f'[0]=0.5 is True for Mathematica?

How can it be?

If I remove eqn2 from DSolve then I get a solution with a parameter of course.

Cheers,

   Mariusz

[toc] | [next] | [standalone]


#15199

From"Nasser M. Abbasi" <nma@12000.org>
Date2013-07-20 09:50 +0000
Message-ID<ksdmg9$4v4$1@smc.vnet.net>
In reply to#15195
On 7/18/2013 1:43 AM, mariusz sapinski wrote:
> Dear All,
>
> I'm trying a simple exercise:
>
> eqn = f''[x] + 2 f'[x] + 30 f[x] == 0;
> Clear[f];
> Clear[x];
> eqn1 = f[0] == 1;
> eqn2 = f'[0] == 0.5;
> DSolve[{eqn, eqn1, eqn2}, f[x], x]
>
>
> and I get:
> DSolve::deqn: Equation or list of equations expected instead of True
>in the first argument {30 f[x]+2 (f^\[Prime])[x]+(f^\[Prime]\[Prime])[x]==0,f[0]==1,True}. >>
>
> so f'[0]=0.5 is True for Mathematica?
>
>  How can it be?
>

no problem in V 9.01, are you sure you are showing what you typed?

--------------------------
Clear[f];
Clear[x];
eqn = f''[x] + 2 f'[x] + 30 f[x] == 0;
eqn1 = f[0] == 1;
eqn2 = f'[0] == 0.5;
DSolve[{eqn, eqn1, eqn2}, f[x], x]

Out[18]= {{f[x] ->
    1. E^-x (1. Cos[Sqrt[29] x] + 0.278543 Sin[Sqrt[29] x])}}

---------------------------------
  
> If I remove eqn2 from DSolve then I get a solution with a parameter of course.
>
> Cheers,
>
>     Mariusz
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web