Thomas Richard

Mr. Thomas Richard

3255 Reputation

13 Badges

15 years, 61 days
Maplesoft Europe GmbH
Technical professional in industry or government
Aachen, North Rhine-Westphalia, Germany

MaplePrimes Activity


These are replies submitted by Thomas Richard

@roman_pearce I'll submit an SCR. Seems to be related to Objects. All I can get to display something is this:

with(NumberTheory):
showstat('ContinuedFraction');

@fbackelj No decision has been made so far, but I notified the maintainers that the problem is still open.

You have certainly put a lot of effort into this worksheet, but such mechanisms (planar or not) are much easier to model in MapleSim. The animation is generated automatically then.

Check out some examples in our Model Gallery, e.g. this one. The video can be viewed without MapleSim, of course.

Interesting example! But simplify/size makes it much more treatable:

result:=int(sqrt(c+d*tan(e+f*x))*(a+b*tan(e+f*x))^(5/2),x): # note the colon
lres:=length(result);
sr:=simplify(result,'size'):
lsr:=length(sr);
evalf(lres/lsr);

That ratio is about 235220...

@JiriHauser I've had no problems with e.g.

E:=LinearAlgebra:-RandomMatrix(4,4,generator=0.01..0.99,datatype=float[8]);
Export(E,"ZufallsMatrix.xlsx");

Tried this in Maple 17 and 2016. However, I'm using 64-bit Excel 2010.

Did you install the last update 17.02? See "Help > About Maple" and then "Tools > Check for Updates" if needed.

@tomleslie If you specify a cell range, you also need to specify the sheet name, to avoid confusing Excel:

ExcelTools:-Import("J:/Users/TomLeslie/myMaple/test2.xlsx", "Sheet1", "B2:C3");

Perhaps this should be documented more explicitly.

@perr7 You don't need Google for this. Just look up the built-in help pages that I listed.

I'm out of the office for the next few days, without access to my computers, so I cannot provide any further details currently - sorry. But I'm sure you will find the required options.

@Declan This can be achieved by the parse command - which does a lot more than just interpreting numbers in strings - see its help file for details.

By the way, here's one more approach to the desired conversion:

L := [1,2,3,4,5]:
S := StringTools:-Implode(convert~(L,string)); # note the tilde (elementwise) operator
n := parse(S);
whattype(n);

Please upload your worksheet, using the green arrow-up icon in the message editor.

@tomleslie Good point! I missed the imaginary factor.

@Zihan You may have made some mistake when copying the formula from the book, or the book itself may be wrong, who knows. I won't type in anything from a photo, sorry. When I turn my head by 90°, all real coefficients become imaginary...

Removing trailing zeros has no effect besides shortening the input.

You should post some more code, or upload a complete worksheet, so that we can give a more targeted answer. Otherwise we cannot address the issue of fsolve returning unevaluated.

To get you started, the following (artificial) code fragment will need to be (modified and) wrapped into your loop:

fsol := fsolve([your_equations]);
values := op(rhs~([op(fsol)]));
AP[i] := values;

where AP has previously been defined as AP := Matrix(937,2) or so.

Anyways, the essential part here is properly accessing the values and placing them in the matrix.

Not sure if it's relevant to your work, but exact solutions can be obtained for special cases - see here and here. Maple code snippet to experiment with:

fse := diff(f(x),x,x,x)+f(x)*diff(f(x),x,x)+beta*(1-diff(f(x),x)^2)=0;
beta := -1: # pressure gradient parameter
# infolevel[dsolve]:=5: # optionally
sol := dsolve(fse);
ssol := simplify(sol,size);
odetest(ssol,fse);
csol := convert(ssol,StandardFunctions);

@fanfancaca You wrote "Maple 15" which is from 2011.
Okay, if you have the current version, please upload your source code, and specify anything that is needed to reproduce the error message (e.g. compiler call with command line options or whatever you do in VS).

Someone else will have to check that, because I'm currently still using VS 2010, and that's working well with OpenMaple.

@iman Yes, but Maple's BVP solver can deal with such problems if an additional condition is provided. See e.g. dsys4 in the Examples section of ?dsolve,bvp. It is a 2nd order ODE with three (as opposed to two) conditions.

First 19 20 21 22 23 24 25 Last Page 21 of 40