MaplePrimes Questions

Hi,

 

I would like to differentiate a sinlge-variable function containing abs(), min(), and max() calls. For smaller functions it seems to work, however for my procedure, it does not seem to work. What can be the problem? I would appreciate any comment. 

 

It seems to work for the followings:

> diff(min(5*x,3),x);
                     /        ...

Hi

It is not corect in my problem to get different parameters a, b, c, ... for fmin, fmax and the objective function.

The probleme is to minimize the objective function (fmax-fmin)/fmoy.

NLPSolve((fmax-fmin)/fmoy,t = 0 .. Pi/p/wr,a=1..5,b=0.1..0.5,c=0.4..0.8,d=10..20,wr=200..300,p=5..20);...

Hi

The example below is the same as my code:

restart:with(Optimization):f:=(a+2*b+c*d)*sin(wr*p*t);

fmoy := p*wr*(int(f, t = 0 .. Pi/p/wr))/Pi;

fmax:=NLPSolve(f,t = 0 .. 2,a=1..5,b=0.1..0.5,c=0.4..0.8,d=10..20,wr=200..300,p=5..20,maximize);

fmin:=NLPSolve(f,t = 0 .. 2,a=1..5,b=0.1..0.5,c=0.4..0.8,d=10..20,wr=200..300,p=5..20);

Taux:=NLPSolve((fmax-fmin)/fmoy,t = 0 .. 2,a=1..5,b=0.1..0.5,c=0.4..0.8,d=10..20,wr=200..300,p=5..20);

In MapleSim, I need a half-sin signal source element.

Of couse, I yielded a half-sin puls by using the combination of 2 sine souce elements and add element.

But i think it is not the best way. I want to use custom element in Maple to create it,

but I don't know how to write the equation code in Maple.

Please help me.

thinks

Hi,

This error has occured for me several times, and I can't seem to find any way around it.

When I make an error in either the algorithm or especially in the grading part, I sometimes get something like this:

Part 2: The character ; cannot be used in a formula.

...or some other error message. I can figure out what I've done wrong and how I might fix it, but I cannot edit the question. Whenever I click on "edit", all I get is the error message....

The first line below is my code for computing the angle between vectors U and v.

It works and gives correct answers.  But it appears on the screen with this  "Typesetting: delay"  for each of the dot products.

What does it mean?  Is there a package I should have loaded?

This is for a lab where I want students to use the formula as it appears in the textbook rather than using some built in function that makes it "too easy."

As shown in the image bellow. The first statement of fsolve function yields nothing but evaluating the expression. I copied the expression into the second command line and got the result. How can I make the first one works, since it belongs to a proc in my program. 

This is another elementary question (I tried searching MaplePrimes but couldn't find anything):

Suppose I'd like to use "solve" to solve a system of equations specified as vectors:

z := <yb,x1b,x2b>:
v1 := <v1y,v1x1,v1x2>:
v2 := <v2y,v2x1,v2x2>:
e1 := z = v1 + v2;
e2 := v1 <= UU*delta1;
e3 := v2 <= UU*delta2;

Invoking "solve([e1,e2,e3],[z,v1,v2])" does not work. 

How do I convert each element...

How do I use floor function without calling maple?

Hi

I have some difficulties in manipulating matrices in Maple

For example, I have a matrice with 40 rows and 9 columns ans I want to extract the odd rows taking columns inchanged. The new matrice which has 20 rows and 9 columns must replace the old matrice

In Matlab, I do this with only one command: WTable=WTable(1:2:40,:);

Thanks in advance for help

Hello,

 

I would like to convert this Maple code into Matlab. Matlab() gives me "Warning, the function names {`$`} are not recognized in the target language"

 

Here is the code:
for d1 from 2 to r-1 do

for l to d1 do Z[d1][l] := combinat:-permute([`$`(0, d1-l), `$`(1, l)]);

K[d1][l] := factorial(d1)/(factorial(l)*factorial(d1-l))

end do

end do; Z[2][1][1][1]; K[2][1] 

 

Thanks and cheers :)

Hello,

I am just now learning how to use Maple and I am having trouble turning Ohm's Law into a function.

Here is what happens when I try to turn Ohm's Law into a function.

 

Vrms:=(R,I)->R*I

       Error, invalid operator paramet name (and then it puts a dotted red line box around everything to the right of the equal sign)

 

What really irritates me is that I can type

I need to label the intersection between a plane and a surface. A perfect, no need to explain more example is this picture taken from wikipedia:

I need to be able to show the red lines that you see there.

http://upload.wikimedia.org/wikipedia/commons/e/eb/Minimal_surface_curvature_planes-en.svg

Can someone help?

I right click my units and it does not give units to simplify

When I try and to z transformations and inverse z transformations using the Heaviside function as follows Maple doesn't seem to be able to handle it; does anyone have suggestions?

 

ztrans(Heaviside(n-No),n,z) assuming No:posint


would expect z^(-No) * z/(z-1) but no results, does work if No replaced by a specific integer

Similarly, ztrans(x(n-No),n,z) assuming No:posint  acts the same.

 

First 1958 1959 1960 1961 1962 1963 1964 Last Page 1960 of 2431