MaplePrimes Questions

Hi,

I try to animate the tangent in a moving point on the curve

ideas ?

Thanks

QuestionAnim.mw

Hey, I've got simmilar problem. I will show it on the same example, but here my expressions are defined as functions and both graphs should be on the same plot. With my version I get:

Warning, expecting only range variable x in expression a*x^2 to be plotted but found name a

My version is:

;

Version below works fine, but I wanted to have this plot in a worksheet not in popup window:

Thanks in advance,

Iza

I try to simplify the expression by putting exponential function into equation but the maple shows error which I can't fix it.simplification.mw

4/(9*n + 7*sqrt(n)) <= 4/(9*n + 7*sqrt(n))

Hi,

I am trying to use Maple to solve a PDE involving composite functions.  How do I program this?  Here is an attached file describing what I am trying to do.

Partial_Differential_Equations_of_Composite_Functions.mw

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.

First 325 326 327 328 329 330 331 Last Page 327 of 2428