MaplePrimes Questions

Hi,

I need to maximize this function:

f := proc(x::Array)
>   if (x[1]^2+x[2]+x[3]+x[4] < 15 and x[1]^2+x[2]+x[3]+x[4] > 10) then
>      2*x[1]^2+3*x[2]+4*x[3]+2*x[4];
>   else
>      1/x[1]+x[2]^2+x[3]+x[4]^2;
>   end if;
> end proc:  

here is the constraint:

> b1:=add(x[i],i=1..4) <= 20;

and initial point:

> initPoint:=[seq(x[i]=1,i=1..4)]:

command for optimization:

Dear experts, I am using Maple 11 and I am using Appel OS. Currently I try to find out how I can export Data to Excel (Apple Version). I used the example in the Maple help desk: R:= Array(1..3,1..4,[[1,2,3,4],[5,6,7,8],[9,10,11,12]]); with(ExcelTools): Export(R, "Employees.xls","Payroll", "B2"); Unfortunately I did not find a saved file on my computer called employees.xls, so obviously it has not been saved. And there was also no pop up in Maple asking me for the exact saving place. It would be of great help if you have an idea how I can handle the problem!

Is there anyway to get maple to show how the bounds of integratioin are changed from cartesian to polar?

<p>Dear all:</p>
<p>  I tried to plot contour of x^2 + 5*y^2 and two solid points. However, the option SYMBOL(_SOLIDCIRCLE) does not seem to work. Does anyone know how to fix this? Also, I am wondering how to plot a line with arrow head (direct line between 2 points) in maple?</p>
<p> </p>
<p>f:= x^2 + 5*y^2;<br />
cf :=contourplot(f,x=-15..15,y=-15..15,contours = 15,scaling = constrained):</p>
<p>plots[display](cf, POINTS([7, 9],[5, 5],SYMBOL(_SOLIDCIRCLE)));</p>
<p> </p>
<p>Many thanks,</p>
<p>Peter</p>

1. Write a procedure to implement this function:
p(n)= x^n – 2^x cos(x), if n<5
nx + arcsin(x), otherwise.
 
2. Plot two functions in Q1, when n=2 and n=5, both when x is in the interval [0, 5].
 
3. Write a procedure to implement:
Input: 1-dimensional Array: X
Output: X’s mean and variance
You should use two output params to store “mean” and “variance”.
 

 

1. Write a do loop to store the first 50 Fibonacci numbers in a 1-dimensional array:
 A_Fib. (p.s. F(n)=F(n-1)+F(n-2), initially, F(0)=0, F(1)=1).
 
2. Write a linear transformation of A_Fib in Q1: B_Fib=2*A_Fib+5.
 
 
3. Use the procedure in Q5, to calculate the mean and variance of B_Fib in Q2.

 

 

**I can't use Maple shortcuts like "sum" to sum up all the numbers in a sequence, etc. **

here I have a PDE equation and the initial value,and by pdsolve(PDE,IBC,time=t,range=.....) I get the expression of the  numerical solution as pds.

eg

PDE:=diff(p,t)+diff(p,a)=-up;

IBC:={p(a,0)=sina,p(0,t)=cost}

pds:=pdsolve(PDE,IBC,numeric,time=t,range=0..2); 

Then how can I integrate p(a,T) for a from 0 to 10(here t is fixed to be T); how can I use the pds and the concrete peocedure is ?              many thanks!

Hi everybody, Using pdsolove(SyPDE, BIC, numeric), I have to model propagation of two waves , u(x,t) and v(x,t) , in two elastic test rods, that are in contact. The MAPLE problem are boundary conditions at the contact surfaces: values of forces and strain are equal at the first rod right end and at the second rod left end: D[1](u)(l_1,t)=D[1](v)(0,t) and (u)(l_1,t)=(v)(0,t) Maple can't do that. Should I put in code some transitional Maple expression or function of force and strain, like, for force X:=(δ*x)/l, in order to get this:

Hi all,

I would be very happy if someone could help me with this one.

I'm trying to solve for an equilibrium of two functions u and U:

u:=ln(y-p*a-g*m)+(1/(M+m+1))*ln(1-l+e*a)

U:=ln(Y-P*A-G*M)+(1/(m+M+1))*ln(1-L-E*A)

where a,m are the variables of u, A,M are the variables of U, and y,Y,p,P,g,G,l,L,e,E are parameters. All variables and parameters are nonnegative.

I am wondering how one would convert a float to a string in fixed notation instead of scientific.

I have a Maplet that I would like to set a textbox to a value obtain from a funciton that returns a float

It's for a stop time on an animation,

so I have Evaluate('t_stop'='decay_time('h')') in my Maplet code... but it returns it as scientific notation e.g. 1.234E-1 for 0.1234

I would like to return a string of 0.1234

I have tried using a: = convert ( 0.1234, float 4), convert (a,string), but that still remained as scientific notation...

I'm dealing with a analysis of a mechanical mode with maple12,but I got blocked with ploting a function for a long time.Could you help me with it?Thanks a million!

the expression is below:

arcsin((2.*(22.*RootOf(-73-55*sin(theta[1])+2*_Z^2, label = _L3)+10.*RootOf(-73-55*sin(theta[1])+2*_Z^2, label = _L3)*sin(theta[1])-73.-55.*sin(theta[1])))/(73.+55.*sin(theta[1])));

when ploting that,it appears:Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct.

I define a procedure function like this

f:=proc if 0<=x<1 then 1 else 0 fi; end proc

but when i want to integral it

int(f(x),x=0..2)

maple gave me the information like this

Error, (in g) cannot determine if this expression is true or false: 0 <= x and x < 1

I want to know why? and I know use piecewise function can solve this. but  I think is there any other method to solve it?

Hi, I am currently enrolled in a class which uses Maple 12.  I have looked through all the FAQ and Help topics by using their search functions.  I still not have the command to find the Domain and Range of a function.  Advance thanks for any help which is appreciated

Hello,

I need to export animation as a gif picture with different speed of animation.

I use plotsetup(gif,  ... but I do not know how I could do it.
 

Please help me.

Thanks

Vladimir

Hello Folks ! I'm running Maple 11 on Mac OS X Leopard (latest version 10.5.6). I've found what I think is a bug in Maple: when doing operations on large polynomials, like multiplication or factorization, the result is correct, but some ghost exponents show up on fractions or even plus/minus symbols. In the file I've attached you will see this in the last two results, in which a 4 exponent shows up over the 1/8 and +/- signs or even over some parenthesis. Maple doesn't seem to get confused wi
First 2139 2140 2141 2142 2143 2144 2145 Last Page 2141 of 2434