MaplePrimes Questions

Hi Guys, I hope you can help!

I am stuck trying to plot a function that has a conditional based on 'x' the plotted variable.

e.g.

> pltx := proc (num1::integer, num2::integer, x) 
if 1 < x then
return 0
elif x < 0 then
return 0
else
return num1*x^num2
end if
end proc;

> d := plot(pltx(2, 5, x), x = 0.1 .. 0.4);

Error, (in pltx) cannot determine if this expression is true or false: 1 < x

Regards,

I am trying to solve a problem in theoretical applied mechanics in which I need to find the solution for 5 unknown but I have 6 equations. None of the equations is redundant and I need the solution of the variable to satisfy each of the equations.

These are the equations 

24-52*L^4*m[0]*Omega^2*(R+1/2)/EI[0]-168*beta[1]-52*F*L^2/EI[0]+104*beta[2]+(120+72*beta[1]+104*L^4*m[0]*Omega^2*R/EI[0]-504*beta[2]+312*beta[3]+84*L^4*m[0]*Omega^2*(R+1/2)/EI[0...

Hello,

I have created a test document to check an equation and I would like to feed a range of k values (ranging from 0 to say 512) in increments of 1) to the main function, and then plot the result as a graph of Zuncomp (y-axis) vs k(x-axis).

I can verify the values of the function by typing say Zuncomp(0) or Zuncomp(10) etc but how do you run this so that you do Zuncomp(k) to read all values of k and generate the output to plot?

Using Maple 13 (Windows 7...

I am new to maplesim. I want to model the human hand and constrain the fingers to a certain range of angle. Then apply a controller to analyse its controllability and also see the dynamic equation formulation

restart;

assume(alph>0);

assume(alph,real);

f_exp:=exp(-alph*r^2);

ff_deriv:=simplify(r^2*f_exp^2);

ff:=simplify(int(ff_deriv,r=0..infinity));

 

It seems to understand what i'm trying to integrate but when I try and find ff it comes up with an awful expression full of erf functions and with a lim r--> infinity at the front. However on wolfram alpha I get the answer that I want: sqrt(pi/2)/(8*alpha^(3/2)).

I am trying to solve two differential equations numericaly:

I recently get a new macbook pro with retina display. Unfortunately Maple 16 seems to be not retina ready. Searching the net I found a tool called retinizer. Using it Maple 16 seems to be displaying a little better, but still the outputs of calculations looks blured. however, whenever certain texts are selected, the whole Maple window display becomes very sharp, so I guess Maple is somehow retina ready but this functionality is disabled by default. Checking the "Get Info" window...

hey all..
i want to plot graph for two tables.

Table1 shows value for crank nicolson method at different x and t 

t╲x  0.05	0.15	0.25	0.35	0.45	0.55	0.65	0.75	0.85
0.05	0.0855	0.2446	0.3708	0.4512	0.4815	0.4646	0.4609	0.3160	0.2001
0.15	0.0283	0.8214	0.1277	0.1607	0.1779	0.1776	0.1599	0.1267	0.0813
0.25 0.0112 0.0310 0.0474 0.0597 0.0662 0.0662 0.0597 0.0474 0.0306
0.35 0.0073 0.0128 0.0174 0.0222 0.0246 0.0246 0.0222 0.0175 0.0119

Hi 

In trying to solve:

 a := diff(u(t), t$2)+(p^2-I+t^2)*u(t) = 0;
I get the following solutions,              
sol1 := u(t) = _C1*WhittakerM(-1/4-(1/4*I)*p^2, 1/4, I*t^2)/sqrt(t)+_C2*WhittakerW(-1/4-(1/4*I)*p^2, 1/4, I*t^2)/sqrt(t)        
 
It should be possible to expand these into parabolic cylinder functions and but im not sure how, i would appreciate any help.
thanks

Hi I have three differential equations: 

u := diff(P(t), t) = -7*10^(-8)*P(t)*t/(P(t)*t+R(t))^(1/2),

diff(R(t), t) = 7*10^(-8)*t^2*P(t)/(P(t)*t+R(t))^(1/2)+600*(Z(t)^2-10^5*t^3*(1/(1.15*10^12))^(2/3)*e^(-1.15*10^12))/(t*(P(t)*t+R(t))^(1/2)),

diff(Z(t), t) = -4*10^5*(Z(t)^2-10^5*t^3*(1/(1.15*10^12))^(2/3)*e^(-1.15*10^12))/(t^2*(P(t)*t+R(t))^(1/2))

 

and i want to solve them with initial conditions:

initial := R(0) = 0, Z(0) = 0, P(0) = P;

Hello and thank you in advance,

I am used to Mathematica and am looking to switch, conditionals in Mathematica seem easy, like say

 

  If[0 < z && -6 <= y <= 6 && 0 < x < 1             ,Null             ,Return[0]];

 

How do you replicate this in an easy to read way without lots of nested if statements?

hi 
am writing code and i need to  insert a column vector in maple  of n x 1 order. For specific n i know how to insert it but what if we want for n rows


May be some loop is used or some other commands.

Hi,

 

r:=[3,3,3,3,4,4,4,3,3,3,3,3,3,3,3,2,4,3,1];

 

What's the shortest way to create a frequency table from it?

 

Ie, tells me elements are 1,2,3,4

the corresponding counts are: 1,1,13 and 4

and then if it can return the number with highest counts: 3

Many thanks!

Casper

given differntial equation with boundary conditions.

{f'(x)}^2 - f(x)f''(x) = f'''(x) - 100 * f'(x) - 0.001 * [2 * f'(x) * f'''(x) - f(x) * f''''(x) - {f''(x)}^2] = 0

boundary conditions:

f(0)=0,  f''(0)=0,  f'(1)=1,  f(1)=0

how i will calculate this?

I want to find a triangle with the vertices A(x1, y1, z1), B(x2, y2, z2), C(x3, y3, z3) knowing that the point G(1,1,1) is centroid of the triagle ABC and x1, y1, z1, x2, y2, z2, x3, y3, z3 are integer numbers, but I can not find. How do I tell Maple to do that? 

First 1644 1645 1646 1647 1648 1649 1650 Last Page 1646 of 2434