MaplePrimes Questions

How do I quickly paste and copy the path to my file or working directory? For example, in R:   IN: > getwd(); OUT: [1] "C:/Program Files/R/R-2.8.2/bin". What's the Maple equivalent for that, if any? How do I set/change a working directory? Thanks.

RandomVariable(Geometric(1/p))+1; ProbabilityFunction(%, j) - FAIL. Adding one is a legitimate way to get a zero truncated geometric distribution, having a simple prob. function. Is there a way to make maple understand that? Why does it fail? Thanks.


What's the easierst way to show (with maple) the integral below evaluates (for alphas, betas>0) to the expression given after it? Thanks.

First of all I must say that I am not particulary impressed by the regression commands (fit and LeastSquares) in Maple.

I find them complicated and I must say quite annoying. You have to have the data in this format, you cannot do that...bla bla bla

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.

First 2133 2134 2135 2136 2137 2138 2139 Last Page 2135 of 2428