MaplePrimes Questions

Hi I was trying to difine a constant c that exists in range(0,d). The constant c has two values and is depends on its x location.  The first value "a"  has a duration "e" , the second value "b" has a duiration "f". Start from x =0, the constant c has value "a", then "b", then "a"......

 How should I define this constant in "piecewise"?

In a multibody assembly I have three instances of identically connected prismatic joints (flanges not conneted and identical componets at the frames)

In the simulation results the joints are listed with the following variables:

Why are the variables not the same for three identical components and what do the Fi and Mi stand for?

Is there any documentation on variables listed in the simulation results? It seems that more variables can be available than listed in the component documentation.

I have the following example.

> A:= Vector(3,symbol=v)

A:= Vector(3,symbol=v)

>v[1]:= 5

v[1]:=5


> A

 Vector(3,symbol=v)

 

Is there any way such that v[1] is actually referring to the first element in the vector? In other words, changing v[1] actually modifies the vector A.

 

If the question does not make sense, then here is the actual scenario that I faced.

I need to solve a system of equations in the form of 

2 = c[2] + a[1],
2 = 2*c[3] + a[2],
-2 = -3*c[1] + a[3],
-1 = -2*c[2] + a[1],
-1 = -c[3] + a[2],
1 = a[3]

where a[i], c[i] refers to the entries in the vector.

solve returns the following:

[[a[1] = 1, a[2] = 0, a[3] = 1, c[1] = 1, c[2] = 1, c[3] = 1]]

I then did an assign(%). However, the entries in A and C are not changed. I want the answer returned by solve to be properly applied to the entries of the vectors.

I have been trying to integrate the following an expression using Maple's command PathInt:

PathInt(4*x*y*(y^4+2*x*y-2)/sqrt((1-(2*x*y)^2+(-3*y^2+1)^2)*(1+(y^2-1)^2)), [x, y] = Path(`<,>`(-(1+sqrt(2))*cos(t)-(sqrt(2)-1)*sin(t), cos(t)-sin(t)), t = 0 .. 2*Pi)).

However, Maple does not return a result, but rather an integral. Is there an alternative way to solve the integral above?

Thanks in advance.

a := x -> x + 1;
b := x -> a(x) + x^2;
a := x -> x + 5;
b(x);
                            2        
                           x  + x + 5

However, I wish my b(x) to be x^2 + x + 1. How could I do it?

 I have the following code snippet.

f := x^11 + 2*x^9 + 2*x^8 + x^6 + x^5 + 2*x^3 + 2*x^2 + 1;
g := 2*x^10 + x^7 + 2*x^4 + x;

Gcd(f, g) mod 3;
                        9      6    3    
                       x  + 2 x  + x  + 2
with(Algebraic);
Gcd(f, g) mod 3;
                              6    
                             x  + 1

It is surprising to me that using a package actually changes the behaviour of functions not in the package!

Is this a bug or a feature that I am not aware of?

Hi I am trying to plot in maple but the plot I get is not the one I expect I have attached the maple file and the expected image below. Any help would be appreciated. 

 

 

Hi there,

Is there an easy way to redefine the Dgamma matrices in the Physics package without creating a custom function? I would like to use a form as shown below.

with i running from 1 to 3, i.e. specifying space coordinates and sigma_i being a 2x2 Pauli matrix. The zeroes are 2x2 zero matrices.

where I is a 2x2 identity matrix and again the zeroes are 2z2 zero matrices.

Thanks!

After simplifying an expression, I get different numerical results. The first one (9717.251005) should be correct. The simplification also seems correct.

Why do I get a wrong evaluation result after simplification? Is this a numerical problem?

I'm using Maple 2021 and this my code:

I have a function which describes the complex reflection coefficient of a structure with respect to frequency.  One or more variables may control the function, and I want to find the set of variables which yield the lowest maxima in frequency response, over a given range of frequencies.

For a simple example relying only on a single variable "Z", it would be something like this:

NLPSolve(

NLPSolve(abs(Gamma),f=f1..f2,maximize),

Z=Z[1]..Z[N],

initialpoint = [Z=Z[2]]

);

I suspect I am having two problems with the above:

1.  Without some numeric starting point for Z, the nested NLPSolve(Gamma,f=f1..f2,maximize), Gamma is failing to resolve to a maxima in the range f = f1..f2.  Testing NLPSolve(subs(Z=1,abs(Gamma)),f=0..1,maximize); works just fine, but not without fixing Z to some undesired point.

2.  Maple seems to be unhappy about the inclusion of abs(), stating "abs is not differentiable at non-real arguments".  However, a test of another simpler complex function did not bring about the same complaint, so perhaps this is a misleading error due to the poor structure of my command.

Help!

Thank you.

I have reported this to Maplesoft. There is a problem (on LInux 20.2) that has to do with java. I have (well, I had) a large project. Around 1500 lines when I cut and pasted into a word processor. (No, I was not editing in the word processor, I just needed a way to put a number on the size that was better than, "quite large". )

I do my editing in 2D math. The other is not an option, and I kind of doubt it would matter.

There is a problem in 2022,  in which,  after working in the editor for 3-5 hours, it gets very slow. CPU use will go into the 80% range. Java will have 1.7 GB or RAM allocated to it. The editor  becomes impossible to use. The only cure is to save the file, then re-open it after shutting down Maple. If Java goes away in system monitor (Linux version of Taskmanager) then it will work fine when it comes back. This appears to me to be a bug in handling of java, in which Maple never lets go of memory, and some piece of code goes off into all that RAM to do something. I have waited as long as half an hour. That time I gave up and killed the java task which ended Maple.

Just now, what prompted this post, in addition, is that when I brought Maple back up for the (2-3 times per day complete restart due to this problem) the file I had just saved is now corrupted, and truncated. A lot of work is gone, and no way to retrieve it I know of. The file is now less than half the size it was (43% of the size of the previous version number).

I told support that this release is acting like beta software, despite being the regular release.

Be careful. Increment your saved versions of .mw files regularly. Save regularly. Expect problems.

Configuration: Intel i7 CPU, 64 GB RAM. Note that earlier versions of Maple sometimes got memory use up to 12 GB on other sheets. I have not noticed what Java was using prior to this.

I noticed that someone changed this to a "performance" tag. It is not really about performance. This shows up as the editor is a bit slow, and then suddenly the editor is off in the weeds for a while. This is a serious memory management problem. It is also a bug that killed a day's work, and if I hadn't been lucky more than a day. Maple should not destroy files when it writes them out.

Please don't arbitrarily recategorize a bug without fully reading the problem.

The uploaded worksheet attempts to determine arc lengths of an ellipse by two methods. Why do their results differ?

ArcLength_of_Ellipse.mw

Trying to teach my granddaughter complex math and I was trying to show the use of the division of two complex numbers.

such as (8x+3i)/(5x-i).  I could not get maple to give an answer.  There is a way to do this put for the life of me I couldn't find it at the time. 

Can somebody tell me how to do this operation.

Thanks

Bill

How i can i write the code for the last equation which includes summations and one product in the picture? tnx for the help.

Hello,

Do you know a command which give the time Maple need to result a problem ....??
Thank you

First 324 325 326 327 328 329 330 Last Page 326 of 2426