briceM

45 Reputation

3 Badges

9 years, 126 days

MaplePrimes Activity


These are questions asked by briceM

I'm trying to solve the differential equation.

Eq := diff(y(x), x, x) = -(x^2+1)*y(x)+K;

dsolve({Eq, y(-1) = 0, y(1) = 0}, y(x));

But this not work very well.

Best Regards,

 

Hello,
I have defined a function f (x, e, y).  I give values of n: = i * h as follows:

f (x (n), w (n), t) = w * t * x;
n: = i * h;
r (n) = n;
Then I need to do this operation:
w (n) = w (n) + r (n);

w(n):=15; r(n):=30;

w(n):=w(n)+r(n);

w(n);
Error, (in w) too many levels of recursion.

How i can operate?.

Regards.

 

 

Hello,

I want to make a for loop inside another loop, but this code does not seem to work well.

for i from 0 to 10 do

  for n from 0 to 10 do

  i+n

  end do

end do;

 

 

Regards

Hello,

I have the following list made with dsolve:

num_n := dsolve({c_i1, c_i2, Ecuacion_1, Ecuacion_2}, numeric, method = classical[rk4], {u(x), v(x)}, stepsize = .1);
proc(x_classical) ... end;
for i by .1 to 2 do num_n(i) end do;
[x = 1., u(x) = 1., diff(u(x), x) = 0., v(x) = 0., diff(v(x), x) = 1.]

...

But when i do :

 

u(1);

u(1)

Should be u(1)=1 and not u(1)=u(1).

Regards.

Carmelo.

1 2 3 4 5 6 Page 6 of 6