anishtain4

15 Reputation

5 Badges

13 years, 324 days

MaplePrimes Activity


These are replies submitted by anishtain4

Thanks it worked fine, but if you don't mind can you say what is wrong with the first code wrote?

Thanks it worked fine, but if you don't mind can you say what is wrong with the first code wrote?

I did try that, but it wasn't successful for me, maybe it's related to the version of the maple I'm using

I did try that, but it wasn't successful for me, maybe it's related to the version of the maple I'm using

when I reexecute your sheet I get the same undefined. I'm using maple 13, what is your version?

 

I require a tip too, for the variables like _C1, I copy them in 2d math else when I type "_", it goes to subscript, how do you put them in input?

when I reexecute your sheet I get the same undefined. I'm using maple 13, what is your version?

 

I require a tip too, for the variables like _C1, I copy them in 2d math else when I type "_", it goes to subscript, how do you put them in input?

sorry, didn't noticed things messed up. here is what I said?

the file:

bc-problem.mw

and the sheet:

eq := rhs(dsolve(diff(f(x), x, x, x)+diff(f(x), x, x)-2*f(x) = -2*x))

x+_C1*exp(x)+_C2*exp(-x)*cos(x)+_C3*exp(-x)*sin(x)

(1)

s1 := eval(eq = 0, x = 0)

_C1+_C2 = 0

(2)

s2 := eval(diff(eq, x) = 0, x = 0)

1+_C1-_C2+_C3 = 0

(3)

s3 := eval(diff(eq, x) = 1, x = 10^n)

1+_C1*exp(10^n)-_C2*exp(-10^n)*cos(10^n)-_C2*exp(-10^n)*sin(10^n)-_C3*exp(-10^n)*sin(10^n)+_C3*exp(-10^n)*cos(10^n) = 1

(4)

ans := map(limit, solve({s1, s2, s3}, {_C1, _C2, _C3}), n = infinity)

{_C1 = 0, _C2 = 0, _C3 = undefined}

(5)

``

 

Download bc-problem.mw

sorry, didn't noticed things messed up. here is what I said?

the file:

bc-problem.mw

and the sheet:

eq := rhs(dsolve(diff(f(x), x, x, x)+diff(f(x), x, x)-2*f(x) = -2*x))

x+_C1*exp(x)+_C2*exp(-x)*cos(x)+_C3*exp(-x)*sin(x)

(1)

s1 := eval(eq = 0, x = 0)

_C1+_C2 = 0

(2)

s2 := eval(diff(eq, x) = 0, x = 0)

1+_C1-_C2+_C3 = 0

(3)

s3 := eval(diff(eq, x) = 1, x = 10^n)

1+_C1*exp(10^n)-_C2*exp(-10^n)*cos(10^n)-_C2*exp(-10^n)*sin(10^n)-_C3*exp(-10^n)*sin(10^n)+_C3*exp(-10^n)*cos(10^n) = 1

(4)

ans := map(limit, solve({s1, s2, s3}, {_C1, _C2, _C3}), n = infinity)

{_C1 = 0, _C2 = 0, _C3 = undefined}

(5)

``

 

Download bc-problem.mw

it returns not defined!!

and I wanna use it in the cycle as I said above too. I remember from before that I have used the infinity for dsolve and it worked. I'm not sure what is the problem here? but I guess if the undefined get corrected it will work in the dsolve too.

I used quiet simple steps here:

> eq := rhs(dsolve(diff(f(x), x, x, x)+diff(f(x), x, x)-2*f(x) = -2*x));
print(??); # my part
> s1 := eval(eq = 0, x = 0);
print(??); # as the link you mentioned
> s2 := eval(diff(eq, x), x = 0);
print(??);
> s3 := eval(diff(eq, x), x = 10^n);
print(??);
> ans := map(limit, solve({s1, s2, s3}, {_C1, _C2, _C3}), n = infinity);
print(`output redirected...`);
                     {_C1 = 0, _C2 = 0, _C3 = undefined}

it returns not defined!!

and I wanna use it in the cycle as I said above too. I remember from before that I have used the infinity for dsolve and it worked. I'm not sure what is the problem here? but I guess if the undefined get corrected it will work in the dsolve too.

I used quiet simple steps here:

> eq := rhs(dsolve(diff(f(x), x, x, x)+diff(f(x), x, x)-2*f(x) = -2*x));
print(??); # my part
> s1 := eval(eq = 0, x = 0);
print(??); # as the link you mentioned
> s2 := eval(diff(eq, x), x = 0);
print(??);
> s3 := eval(diff(eq, x), x = 10^n);
print(??);
> ans := map(limit, solve({s1, s2, s3}, {_C1, _C2, _C3}), n = infinity);
print(`output redirected...`);
                     {_C1 = 0, _C2 = 0, _C3 = undefined}

Thanks it helped a lot

Thanks it helped a lot

Can anyone please give a point in this question?

I have the same problem too

1.Well the problem is that when you put "restart" you will miss all the other data, doesn't something I used work here? first assign the result formula to a variable so that line won't be recursive and then make a funtion so I can use it later.

When I use your answer in the 6th line of modified_try.mw and then pass a value into it that says too many levels of recursion. what should I do with this?

 

2. I don't understand how maple works? Should not the index i starts from zero when I use it somewhere later? Indexes are dummy and not adhered to the array I'm using them with right? So why is this so? I'm used to FORTRAN and I'm kinda just translate what I would do there here

Page 1 of 1