nm

11353 Reputation

20 Badges

13 years, 12 days

MaplePrimes Activity


These are replies submitted by nm

@acer 

wow, this frontend trick is really nice!

@Carl Love 

thanks. Your additions helped. I did not know about the INTERVAL(2,0,4,0) syntax.  But I find this a little too complicated. I think it should handle this using INTERVAL(2,4), as in

restart;
a:= INTERVAL(2,4):
b:= INTERVAL(1,3):
c:= INTERVAL(1,3):
evalrC~([solve(a*x^2+b*x+c=0,x)]);

and it should do the right thing, but the above gives an error, without the user having to specify before the intervals using the complex notation, (2,0,4,0). In Mathematica it works using one notation.

But I will live with this for now ;)

@Carl Love 

thanks for the answer. But I thought the solutions were supposed to be real in the first example? When I write

restart;
with(Tolerances):
a:= 3 &+- 1;
b:= 2 &+- 1;
c:= 2 &+- 1;
sol:= {(-b + sqrt(b^2-4*a*c))/(2*a),(-b - sqrt(b^2-4*a*c))/(2*a)};

Maple says:

And the solution are real?  isn't the quadratic formula correct there? So x is real over all the interval.

Using your syntax, I also get the same error I showed before:

restart;
a:= INTERVAL(2..4):
b:= INTERVAL(1..2):
c:= INTERVAL(1..2):
evalr~([solve(a*x^2+b*x+c=0,x)]);

Error, (in evalr) not a real number

I must be doing something wrong, but do not see it now.

 

for the first one maple gives

asympt(sinh(x),x);

 

@acer 

thanks, I thought buildin means any Maple command such as int() and dsolve() etc...

I did try it before, but I must have done something wrong as it hanged when I tried it. But now it works using your code.

I'm struggling to get my head around using Z-transforms in maple

What steps would I have to take to get

a)

Find y[n], the inverse Z-transform of

z/(z-2) 5z/(z-5)^2

 

 

Can you show what have you tried? you must have tried something, since you say you are struggling? Typing "inverse Z transform Maple" in google shows the command with examples. So it is hard to see why are you struggling with this if you do not show what you tried so one can show you what error you made.

@Carl Love 

It is not working for Maple 2015. Is it not missing the (0) there? THis is what I get

 

restart;
x := t-> <x1(t),x2(t)>;
eq:=diff~(x(t),t$2) =~ <sin(t),t>;
ic1:=x(0)=~0;
ic2:=D~(map2(op, 0, x(t))) =~ 0;

 

But I think it should be:

To proof this, I did it by hand:

restart;
x := t-> <x1(t),x2(t)>;
eq:=diff~(x(t),t$2) =~ <sin(t),t>;
ic1:=x(0)=~0;
ic2:=<D(x1)(0)=0,D(x2)(0)=0>;
sys:={eq,ic1,ic2};
dsolve(sys,x(t));

and got solution. But if I used your method, I get errro:

restart;
x := t-> <x1(t),x2(t)>;
eq:=diff~(x(t),t$2) =~ <sin(t),t>;
ic1:=x(0)=~0;
ic2:=D~(map2(op, 0, x(t))) =~ 0;
sys:={eq,ic1,ic2};
dsolve(sys,x(t));

Error, (in dsolve) ambiguous input: the variables {x1, x2} and the functions {unknown(x1), unknown(x2), x1(t), x2(t)} cannot both appear in the system

 

thank you

 

 

 

 

 

@acer 

thanks, this works. too bad one has to use print() there to see the output, but it is still faster than having to make new text file or open Maple if one wants to try one quick command on the fly.

@acer 

I tried -c -c but that did not work

cmaple.exe -c -c "int(sin(x),x);"
maple: error, could not open "int(sin(x),x);" for input

memory used=0.3MB, alloc=8.3MB, time=0.05

thanks for the link, I looked at it, but it is all about Linux. I tried using examples there, like using EOF and all those but they do not work on the command line from windows DOS.   Well, it is ok, will just have to make a file then.

and how did you want someone to help you when you paste an image of 20 lines expression that can't be copied?

 

@acer 

opps, I see. My mistake. I read it as the first 3 commands in separate group from the print command.

now it works, finally :). Thank you

@acer 

I did. Each in separate group. I used F3. But still no change, screen shot

Also tried just dsolve, same thing, inner `` are missing

 

Anything else I should try?

@acer 

Thanks. It seems not all changes are documented. For example, Maple 2015 says these commands below have changed. I looked at the compatibility section of each and it all what it says is this that the command changed, but does not says what changed

 

 

and more...

@acer 

Can you please explain what you mean by "Note the _syslib attribute needs to be stripped off, in order for the proc body to be displayed when prettyprint=1" ?

I do not understand what I need to actually do. I tried your commands and there is no difference in outout. I tried this

restart:
interface(prettyprint=1):
interface(verboseproc=3):
print( setattribute(copy(dsolve)) );

and also
restart:
interface(prettyprint=1):
interface(verboseproc=3):
print(dsolve);

and in both cases, the screen display shows those inner `` are missing, just like I showed above in my question.
Does one have to do something else?
Maple 2015 on windows 7

@Preben Alsholm 

Becuase to be consistent.

One can't write  print(dsolve/interactive); for example, but have to write print(`dsolve/interactive`);

so to avoid keep noticing if I need to use `` or not. I use them all the time on the call. That is all.

 

 

First 76 77 78 79 80 81 82 Last Page 78 of 91