MaplePrimes Questions

2 questions: How would one delete  an execution group that is at top of a work sheet? Like this:

No matter what I do, I get a beep. I select it, click DELETE and nothing happens.

THe second question, is how to delete the last section arrow I added by mistake and do not want, this one:

I found I can remove if I select it with the line above, but then that would delete the code above also, which I'd like to keep.

Why is so awkward to use Maple user interface like this? Is this by design?

To make it easier, I attach the above notebook.

 

hard_to_delete.mw

My eyesight is not what it used to be, so I would like to maginfy Maple's help window with a zoom factor of 150%.   I know how to do that by hitting Ctrl-F4.  My question is: Is it possible to save that setting somehow so that help is displayed at 150% by default?

Aside: The option Tools->Options->Interface->Default Zoom does not seem to do what I want.  For one thing, it sets the zoom factor of the main worksheet which I don't want to change.  For another thing, it affects the zoom factor of the help window in a rather mysterious way.  For instance, if I set Default Zoom to 400%, then the main window is indeed zoomed by 400% but the help window is zoomed by only 200%.

Platform: Maple 18 on Linux

If you define an array with entries from 1..10 and you want to plot these entries but with three different plots, e.g. entry 6 and 7, and again entry 10 shall be plotted separately: plot entries 1,2,3,4,5,8,9 in the same way, but entries 6,7 in a second and entry 10 in a third way. For example with different colors.

Is there a command for this?

I solve numerically very simple boundary value problem for the following ordinary diff. equation:

-1.2*y''(t)+0.8*y(t)=2,

y(0)=1, y(1)=0.

So := dsolve([-1.2*diff(y(x), x$2)+0.8*y(x) = 2, y(0)=1, y(1)=0], y(x), 'numeric', 'output' = listprocedure);

Solution looks as needed

u := unapply(rhs(So[2])(x), x): plot(u(t), t=0 .. 1);
pic

and can be numerically integrated in usual way:

evalf(int(u(t), t = 0..1));

0.6041717543123311

But integral of u^2(t)  (evalf(int(u(t)^2, t = 0..1))) returns:

pic1

How to avoid this issue?

Hi everyone.

I have a question:

How I can simulate the amplification of the beam in a diode-pumped ytterbium-doped material?

I am work on thin disk laser resonators and its gain medium is Yb:YAG.

The expression  expr  the command  simplify  simplifies without any problems. Even certain automatic simplification is produced:

expr:=sqrt(4-sqrt(7))*sqrt(4+sqrt(7));

simplify(expr);

 

 

But if we slightly modify the expression, the simplification is not performed:

expr1:=sqrt(4-sqrt(6))*sqrt(4+sqrt(6));

simplify(expr1);

 

 

The last expression  expr1  succeed to simplify the only combination of commands:

expand(combine(expr1));

                     

 

What is the reason for this strange behavior of  simplify?

Hi

I am performing a Fourier transform on

1/sqrt(1-x^2)

Maple returns a Bessel function

Is there a way to suppress this so that it gives the actual function and not the

Thanks

James

I prefer to write packge:-command(....) so I can see which package the command is from.

But sometimes I am forced to load  a package. Here is an example. IntegrationTools contains some useful types

At load time the IntegrationTools package defines three new types: Integral, DefiniteIntegral and IndefiniteIntegral, which can be used to access integrals involved in any given expression.

I thought I can access these just like the commands in the package, using ":-" notation, but this does not work

------------------
restart;
v := Int(sin(x), x);
type(v,IntegrationTools:-IndefiniteIntegral);
---------------------

 

Error, IndefiniteIntegral is not a command in the IntegrationTools package

But this works

-----------------------
restart;
with(IntegrationTools);
v := Int(sin(x), x);
type(v,IndefiniteIntegral);
----------------

It looks like :- only works to access functions/commands/procs in a package. and not to access types such as in this example.

Is there some other notation to use to reference types in package without having to load the whole package?

    

according to help on Combine

The Combine command combines integrals using linearity. The parameter v is any expression involving definite or indefinite integrals.

So, why I get an error from the following?

restart;
expr:=Int(sin(x),x) + Int(cos(x),x);

IntegrationTools:-Combine(expr);

Error, (in IntegrationTools:-Combine) invalid subscript selector

interface(version);
 Standard Worksheet Interface, Maple 18.02, Windows 7, October  20 2014

 

 

 

 

 

How can we plot theta=pi/6 in polar coordinates by maple13?

>restart:
>with(LinearAlgebra):
>with(Student[NumericalAnalysis]):
s := {E[1], E[2], E[3]};
v := {x[1], x[2], x[3]};
A := GenerateMatrix(s, v);
B := augment(A)
Then what i do that for any matric i can use same program.

I tried

nops({x, y, z,1+x, 2+y, -3+z,-2+x, 3+y, -1+z });

and Maple out 9.

If x = 1, y = 2, z = 3, we have

nops({1, 2, 3, 2, 4, 0, -1, 5, 2});

equal to 7.

Edit.

I edited my question. The word "list" into "set".

My question means, there is a triple (x, y, z) = (1, 2, 3) so that the number of element of the set {x, y, z,1+x, 2+y, -3+z,-2+x, 3+y, -1+z } is 7, not 9. Why we can confirm the number of elements of the set {x, y, z, 1+x, 2+y, -3+z,-2+x, 3+y, -1+z } is 9? And, how must select the integer numbers x, y, z (0 < x <10, 0< y <10, 0< z < 10) so that the number of elements of the set {x, y, z, 1+x, 2+y, -3+z,-2+x, 3+y, -1+z } is 9?

I tried

restart:

ListTools[Categorize]:

L:=[]:

for x from -2 to 5  do

for y from -2 to 5  do

for z from -2 to 5  do

a:=[x,y,z]:

b:=[1+x,2+y,-3+z]:

c:=[-2+x,3+y,-1+z]:

if op(1,a)*op(2,a)*op(3,a)*op(1,b)*op(2,b)*op(3,b)*op(1,c)*op(2,c)*op(3,c)<> 0

and op(1,a)<>op(2,a) and  op(1,a)<>op(3,a) and  op(1,a)<>op(2,b) and  op(1,a)<>op(3,b) and  op(1,a)<>op(2,c) and  op(1,a)<>op(3,c) and op(2,a)<>op(3,a) and op(2,a)<>op(1,b) and

op(2,a)<>op(3,b) and

op(2,a)<>op(1,c) and

op(2,a)<>op(3,c) and

op(3,a)<>op(1,b) and

op(3,a)<>op(2,b) and 

op(3,a)<>op(1,c) and

op(3,a)<>op(2,c) and

op(1,b)<>op(2,b) and

op(1,b)<>op(3,b) and

op(1,b)<>op(2,c) and

op(1,b)<>op(3,c) and

op(2,b)<>op(3,b) and

op(2,b)<>op(1,c) and

op(2,b)<>op(3,c) and

op(3,b)<>op(1,c) and

op(3,b)<>op(2,c) and

op(1,c)<>op(2,c) and

op(1,c)<>op(3,c) and op(2,c)<>op(3,c) then L:=[op(L), {a,b,c}] fi; od: od: od:

nops(L); 

L;

 

 

 

 

with(Tolerances):

a := `&+-`(2, .5);

b := `&+-`(30, 10);

evalf(a*b);

with(ScientificErrorAnalysis):

a1 := Quantity(2, .5);

b1 := Quantity(30, 10);

combine(a1*b1, errors);

Dear everyone, 

       I want to deal with experimental data with error. I find two ways to do the job. But  the results are different .Could you tell me which one is more correct?

      Thank you.

Barry.


Hi there,

I would like to use Maple to solve a couple of integrals.

My attempt seems to have some errors, since even if the integral expressions are rendered correctly, they are  not being solved. They shouldn't need numeric methods to be solved.

The integrals are the following:
G1 := int(e^((lambda-k)*s-e^(-k*s)), s = -infinity..t);
G := int(e^(-(lambda+k)*t-e^(-k*t))*G1, t = -infinity..infinity);

Thus:

and

 


And attached is the unsuccessful attempt: MaplePrimes_Lea-Catcheside.mw

Thanks,
jon


Hi there,
I have a set of differential equations whose solution, Jacobian matrix and its eigenvalues, direction field, phase portrait and nullclines, need to be computed.

Each of the equations has a varying parameter.

I know how to get the above for a single parameter value, but when I set a range of values for the parameters, Maple is not able to handle all cases as I would expect: solving the differential equation system:

eq1 := x*(1.6*(1-(1/100)*x)-phi*y)
eq2 := (x/(15+x)-0.3e-1*x-.4)*y+.6+theta
desys := [eq1, eq2];
vars := [x, y];
steadyStates := map2(eval, vars, [solve(desys)])

already yields an error:
Error, (in unknown) invalid input: Utilities:-SetEquations expects its 2nd argument, equations, to be of type set({boolean, algebraic, relation}), but received {-600*y+(Array(1..2, {(1) = 8400, (2) = 15900})), Array(1..5, {(1) = 0, (2) = 0, (3) = 0, (4) = 0, (5) = 0})}


The equations are the following:
de1 := diff(x(t), t) = x(t)*(1.6*(1-(1/100)*x(t))-phi*y(t));
de2 := diff(y(t), t) = (x(t)/(15+x(t))-0.3e-1*x(t)-.4)*y(t)+.6+theta

the parameters being:
phi:=[0 0.5 1 1.5 2]
theta:=[5. 10.]

How can I handle the situation so that Maple computes each of the above for each combination of the parameters?

I would like to avoid using two for loops and having to store all results in increasingly bigger and complicated arrays.

The worksheet at issue is this: MaplePrimes_Tumour_model_phi_theta_variation.mw


Thanks,
jon

First 1335 1336 1337 1338 1339 1340 1341 Last Page 1337 of 2434