nm

11558 Reputation

20 Badges

13 years, 135 days

MaplePrimes Activity


These are replies submitted by nm

@Rouben Rostamian  

oh, that is just the PDF reader itself that I have. I am on windows 7.

 

For example, I cropped your plot, and this is the result

Before:

After:

Since your pdf file is one page, this is even easier than having to deal with multi-page pdf.

If I have to do this in multi-page paf, I first extract the page in question to separate pdf file, and then crop it.It really takes less than few seconds to do.  I assume this crop tool is there is all pdf reader from adobe.

@Chia 

it works for me. Maple 18.02

use dsolve with the numeric option

@ecterrab 

dsolve(blabla, Order = 20) would result in (arrive at dsolve as) dsolve(blabla, 6 = 20).

Is it then possible to have Maple functions and command detect/check for invalid input and invalid options and issue an error message to the user intead of ignoring these user errors? If dsolve would have issued an error message about an invalid argument or such, then it would have been easier for me to notice this and correct it. For example, I just tried this, and I was surprised it worked. Maple did not complain about anything:

restart;
eq:=diff(y(x),x$2)+y(x)=0;
dsolve({eq,y(0)=1,D(y)(0)=0},y(x),series,orderzzzz="some string");



On the other hand, it is true, order = n is documented in all these help pages (pdsolve,series, DifferentialAlgebra[PowerSeriesSolution], DEtools[rtaylor], ..) but not in dsolve,series, confusing you. This is an oversight. I will make sure the option is mentioned also in dsolve,series.

thank you.

@Preben Alsholm 

I was following documentation.

http://www.maplesoft.com/support/help/maple/view.aspx?path=dsolve%2fseries

Also, this option is not given in the documenation at the top:

I do not see it. But I actually did try using Order as an argument and it did not work as you can see

Maple 18.02. 

But now what I tried with lower case order, it worked. I wish Maple can make up its mind on lower case vs. upper case, and to document options that are actually there. Having to try things to learn what the API is, is not the correct way to use software.

 

please post plain text code, not screen shots.

When getting into trouble, the first thing to do is to try to reproduce the problem using a small example. This is the first and most important skill a programmer must learn.

You say Maple does not seem to evaluate the array in a loop. So, I would start by trying to reproduce this using small example with small array instead of trying to figure it out using the large program.

Many times, just in trying to reproduce the problem in small example will show the error you are having in the code, it might be as simple as needing to use an eval somewhere.

 

@Carl Love 

nice solution. I tried subsindents instead of evalindents, but becuase I missed the algsubs, it was not working, but now it works with the 1/TV

collect(subsindets(B,`*`,x->algsubs(1/(T[1]*V[2])=u,x)),u);

(too many Maple functions, too little time)

@Kitonum 

This is the first thing I tried, but I used: algsubs(T[1]*V[2]=U, B); instead of yours algsubs(1/(T[1]*V[2])=U, B) and I could not figure out why the T1V2 in the denominator(s) were not being replaced. I thought it works like Mathematica patterns, but I was wrong.

 

@Carl Love 

thanks, this will work for me. I can select one group at a time (I do not want to merge them, but wanted to move them all to be under a section). So no problem to do one at time, at least I do not have to manually use the mouse now to select large group as before. (I think Mathematica way is much easier. Click on the edge of the cell to select it, but that is ok for now)

But I get this error on some groups

Would you know if there is some setting I can change to make Maple copy this large group? thanks

ps. I found it. It was under enable/RTF copy. I disable this and now I can copy large group. Problem solved. In case someone in the future gets this error:

 

@acer 

thanks for the sincos trick, I did not know about it. It looks like Maple does not know about the power rule in integration, or did not see it in this case. I added note on this in my question to clarify this.

@acer 

thanks! I never knew about CTRL-DEL before, this is a life saver when using Maple worksheet. I'll put it on a yellow stick now and keep it in front of me.

@Carl Love 

Is there a way to apply a patch to a function such as this and update the library locally on my PC or is this something that can't be done?  I tried the fix to Combine and now Combine does the right thing:

I simply changed

'And(DefiniteIntegral,Not(MultipleIntegral))')

with

'And(Or(IndefiniteIntegral,DefiniteIntegral),Not(MultipleIntegral))')

everywhere

---------------------
restart;
with(IntegrationTools): #needed to load the whole package to access DefiniteIntegral types...
ints:=indets(v,'And(Or(IndefiniteIntegral,DefiniteIntegral),Not(MultipleIntegral))'):
x := IntegrationTools:-GetVariable(ints[1]):
input := subsindets[':-flat'](v,'And(Or(IndefiniteIntegral,DefiniteIntegral),Not(MultipleIntegral))',t -> Change(t,GetVariable(t) = X)):
output := combine(input,'int'):
subs(X = x,Change(output,X = x));
----------------------

 

 

 

 

Where does the augment command come from??

It is not a good idea to do with(...) and then use the commands in the code. It better to write

restart:
s := {E[1], E[2], E[3]};
v := {x[1], x[2], x[3]};
A := LinearAlgebra:-GenerateMatrix(s, v);

Since now it is clear where each command/function comes from. Also this makes it easier to put these in a function later on. Inside a function it is not good idea to with(packages) any way. So you'd have to do this later any way.

 ps. why not use LinearAlgebra[LUDecomposition] ?


set in maple is mathematical set. In math, a set by definition has no duplicate elements. See http://en.wikipedia.org/wiki/Set_%28mathematics%29

First 77 78 79 80 81 82 83 Last Page 79 of 90