Items tagged with multiple multiple Tagged Items Feed

Is it possible to evaluate a function at multiple points described by an array or something of that sort and have Maple return the evaluations as an array. I need approximations of a function at various values of its argument so it would be nice to do it with a single command.

Thanks

Say I have

a.mpl

b.mpl

c.mpl

each of them can be ran seperately. While I am running a single file, it looks like that the machine is not "using" too much computation power. I wonder if it's possible to run multiple at the same time ?

My CPU is i7 940X, with 4 dual core processors, so it has 8 threads.

I know that the GUI can run multiple worksheets seperately, but if in one of the worksheet, i click "run all" (!!! botton),  I will have to run each line separtely by clicking one at a time.

Is there a better way to do this? What's the best way to do this? I hope to somehow 'maximize' the full use of my CPU (without changing the code).

 

casper

I want to sum over several variables at once.

 

For example, something like

add(add(add(f(k1,k2,k3),k1=range1),k2=range2),k3=range3);

sums over 3 variables. But this can only be done if I know the number of variables in advance. I want to write a code that will sum over m variables, with m being supplied on demand.

 

Maple can do this for integrals. If I write

int(f(seq(k[i],i=1..m)),[seq(k[i]=range[i],i=1..m)]);

the integral is computed over m variables, for any m.

 

How can something like this be implemented for summation?

 

¿How can I substitute multiple variables with the alsub command at the same time?

For example, if I want to substitute  x=x1, y=x2, .... into the expression f=x*y+x^2+.... using just one command

How can I plot multiple numeric plots, such that numeric solutions belong to different differential equations?

i want to plot two difrent graph in one diagram.. anyone how to do it?

restart; with(plots); n := .2; B := .5; Ec := 2.0; Pr := 1.0; N := .5; l := 1; rho := .5; c := 1; T := .5; T1 := .5; c1 := .2; c2 := .2; Gr := .5; blt := 5;

Eq1 := diff(f(eta), eta, eta, eta)+f(eta)*(diff(f(eta), eta, eta))-(diff(f(eta), eta))^2+l*B*H(eta)*(F(eta)-(diff(f(eta), eta)))+Gr*theta(eta)-Mn*(diff(f(eta), eta)) = 0;

Eq2 := G(eta)*(diff(F(eta), eta))+F(eta)^2+B*(F(eta)-(diff(f(eta), eta))) = 0;


Eq3 := G(eta)*(diff(G(eta), eta))+B*(f(eta)+G(eta)) = 0;

Eq4 := G(eta)*(diff(H(eta), eta))+H(eta)*(diff(G(eta), eta))+F(eta)*H(eta) = 0;
                 
Eq5 := diff(theta(eta), eta, eta)+Pr*((diff(theta(eta), eta))*f(eta)-2*(diff(f(eta), eta))*theta(eta))+N*Pr*(theta1(eta)-theta(eta))/(rho*c*T)+N*Pr*Ec*(F(eta)-(diff(f(eta), eta)))^2/(rho*T1) = 0;

Eq6 := 2*F(eta)*theta1(eta)+G(eta)*(diff(theta1(eta), eta))+c1*(theta1(eta)-theta(eta))/(c*c2*T) = 0;

bcs1 := f(0) = 0, (D(f))(0) = 1, (D(f))(blt) = 0, F(blt) = 0, G(blt) = -f(blt), H(blt) = n, theta(0) = 1, theta(blt) = 0, theta1(blt) = 0;

L := [0, 1, 2];

for k to 3 do R := dsolve(eval({Eq1, Eq2, Eq3, Eq4, Eq5, Eq6, bcs1}, Mn = L[k]), [f(eta), F(eta), G(eta), H(eta), theta(eta), theta1(eta)], numeric, output = listprocedure); Y || k := rhs(R[3]); YP || k := rhs(R[5]); YR || k := rhs(R[6]); YQ || k := rhs(R[7]); YA || k := rhs(R[8]); YB || k := rhs(R[10]) end do;

plot([Y || (1 .. 3)], 0 .. 10, labels = [eta, (D(f))(eta)]);

 

this comands will comeout to diffrent graph in two diagram.. but i want two graph in one diagram.. any one know how to do it.. beside that.. i want to know how to insert arrow in diagram..

Pls, I tried solving the system of PDE numerically.... When I did for just 1 plot, the graph was plotted easilyrunning.mw but When I varied some parameters its not coming out.... Also, its not bringing any error so I can't trace out my mistakes....Not_runnin.mw PLS HELP ME OUT with the multiple plots... Attached are my source codes links....

 

Good day, Is it possible to plot multiple (more than two) functions with 'dualaxisplot'?I've found some information about it on the Internet, which helped me out a lot, but I still don't know how to put in multiple functions in one dualaxisplot.For example I would like to plot a figure which consists of four functions, all of them having their own domain(!).Three of them are related to the 'left' y-axis, and the fourth function is related to the 'right' y-axis.Comment: I wanted to insert the formula over here, which I use to plot the dualaxisplot, but the 'dualaxisplot-command' isn't working ("You have entered an invalid Maple plot command").So for example, I do know how it works with two formulas, like:dualaxisplot(plot(2x,view=[0..10,0..20],labels=[x,left=2x],legend=2x),plot(x^2,view=[0..10,0..100],labels=[x,right=x^2],legend=x^2,color=blue)); Now I can independently change the left and right y-axis like I want to. Now I would like to have the shape of the next graph:The trhee formulas which belong together, and that I want to relate to the left axis (making one line), consist of: horziontal line, linear line, horizontal lineThe other line I want to relate to the right y-axis, which is a linear line. So I can write the four functions for example like:restart;with(plots):eq1:=50,x=0..3:eq2:=(50/(5-3))*(5-x),x=3..5:eq3:=0,x=5..10:eq4:=10x,x=0..10: I thought I could 'join' the (first) three functions by using the '{' and '}' symbols, but that isn't working either. Somebody has a suggestion?Or that it just isn't possible at all.... Thanks anyway for thinking along. Greetings, Frank   
hello maple support,what is the best way to solve for multiple numbers, ie the equation isx/x+1 i can plot it but i want to solve for .5.9.99.999 and 1.5,1.1,1.01 and 1.001.i have tried a number of ways and browsed tutorials on you tube and some pdfs.it is time for help on solving for multiple quantities.thanks,craig

hi everyone,

I need to plot a graph for system of nonlinear equations with multiple variables. 

here is some example of system nonlinear

 

f1=3.65a^2-2ac-7ad+3.65b^2+7bc-2bd-1.65a+6.22b+0.5=0

f2=13.22a^2-7ac+2ad+13.22b^2-2bc-7bd-6.22a-1.65b+0.24=0

f3=2c^3-2ac-7bc+2d^2+7ad-2bd-0.2=0

f4=c^2+d^2-1=0

 

with initial condition (0.7, 0.2, 0.6, 0.3)t. I solved this using Newton's method and here the iteration

Hi everyone,

 

I need to expand a sum inside a single multiple integral into separate integrals, as in:


  /                          /                  /
 |                 ...

Hi all,

I am trying to plot multiple ODE plots in Maple 16. I can do them all separately, but cannot figure out how to make to solutions appear in the same plot. I have numeric solutions for sol1 and sol2, and I want to plot A(t), t for each one (together).

Thanks for the help!

Hi,

I am trying to get the linearized model of a multibody system which has multiple inputs and multiple outputs. I initially used the "linearization template" of the MapleSim for an inverted pendulum, it worked fine. However, when I tried to get the linearized model for the double inverted pendulum, it gave this error message "problem at initial time: system is underdetermined; cannot solve for the following variables: 'Main.DFPSubsys1inst.eM_MyPendulum1_R1(t)'". 

How would one set up a multispring model in maplesim?

Actually I don't know the exact model I want to try to explore yet, but I was wondering if someone could show an example of, let's say a beam with 4 springs attached offset to one end.  On one end of the beam we inject vibrational frequencies and graph the output on the other end - doesn't matter which end - I imagine we could explore both from both ends.  How could we set that up?

Here is my example picture.

This is what I do. 

 

f1(x):=sqrt(x);

f2(x):=x^(2);

with (plots):multiple(plot,[f2(x),x=0..1,y=0..1,filled=true,color=white], [f1(x),x=0..1,y=0..1,filled=true,color=blue,axes=boxed]);

 

My problem and question is.. it doesn't display the plot that I wanted ( a leaf) and neither does it fill it in with blue. What am I doing wrong?  

 

1 2 Page 1 of 2