• Register
0 votes
549 views

Problem :

I am facing an error for the BC in this equation:

a = NDSolve[{D[h[t, x], t] + Sin[x Degree] h[t, x]^2 D[h[t, x], x] + 2/3 Cos[x Degree] h[t, x]^3 == 0, h[0, x] == 1, D[h[t, 0], x] == 0}, h, {t, 0, 100}, {x, 0, 90}]
NDSolve::deqn: Equation or list of equations expected instead of True in the first argument {2/3 Cos[[Degree] x] h[t,x]^3+h[t,x]^2 Sin[[Degree] x] (h^(0,1))[t,x]+(h^(1,0))[t,x]==0,h[0,x]==1,True}. >>

Any tips to resolve it?

3.9k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had also faced the similar issue in the recent past. I did lot of research on it and found the solution on it. This is the very common problem with the people getting started.

The last condition as shown below:

D[h[t, 0], x] == 0

Is always True as you derivate on the constant. If what you mean is

D[ h[t,x], x]  /. x->0

The that's something else.

For the time being, just remove it (and if possible just find another sensible boundary condition compatible with a order of your equation).

NDSolve[{D[h[t, x], t] + Sin[x] h[t, x]^2 D[h[t, x], x] + 2/3 Cos[x] h[t, x]^3 == 0, h[0, x] == 1}, h, {t, 0, 100}, {x, 0, Pi/2}]

It works for me.

38.6k points
<a href=http://gcialisk.com>buy cialis

Related questions

0 votes
1 answer 7 views
7 views
Problem: System of differential equations solver wolfram?
asked Jul 3 Nahil 128k points
0 votes
1 answer 7 views
7 views
Problem: Is there anyone who can help me find a solution : Wolfram alpha differential equations solver with initial conditions?
asked Jun 18 Mezbah 130k points
0 votes
1 answer 16 views
16 views
Problem: Where's waldo answers the land of waldos
asked Jul 19 Chi Omega 168k points
0 votes
1 answer 13 views
13 views
Problem: I have no idea how to solve this, someone help : Mathematica solve for one variable in terms of another
asked Jun 26 Sawyer Parviz 168k points
0 votes
1 answer 16 views
16 views
Problem: Mathematica check if two expressions are equal
asked Jul 8 Hridoy 19.2k points
0 votes
1 answer 7 views
7 views
Problem: I'm trying to figure out a solution, need help : This system cannot be solved with the methods available to solve.
asked Jun 20 Florina Gulnar 106k points
0 votes
1 answer 21 views
21 views
Problem: Can anyone simplify this : How to take a derivative in mathematica?
asked Jun 5 Sawyer Parviz 168k points
0 votes
1 answer 6 views
6 views
Problem: How to do double integrals in mathematica?
asked Jun 1 Irenka Kiri 85.5k points
0 votes
1 answer 8 views
8 views
Problem: Need help: How to clear all variables in Mathematica?
asked May 28 Mezbah 130k points
0 votes
1 answer 27 views
27 views
Problem: I'm looking for a solution : Could not combine the graphics objects in show.
asked May 26 Rada Gracelynn 104k points