MaplePrimes Questions

Hello,

I would like to print the current values of both displayed functions for x=1 in each frame of the animation. My example code is below:

plot1 := animate(plot, [a*x^2, x = -1 .. 1, color = "Green", thickness = 3], a = 0.2 .. 1.2);
plot2 := animate(plot, [a*x^2 + 0.3, x = -1 .. 1, color = "Red", thickness = 3], a = 0.2 .. 1.2);
display([plot1, plot2]);

I would be grateful for any tips.

Thank you,

Iza

Hello all, 

Would you allow me to ask this one question?
[moderator: See also this previous question]

Is there any possible way to treat the differentiation operator (e.g., 'D') as an ordinary coefficient of a polynomial?

For example, as described in the attached worksheet, I was wondering if there is a way to re-write the LHS of the expression 'eq_e5_9b' as the expression 'desired'. 

In Kwon Park 

restart;

with(DEtools):

eq_e5_9b := psi__d0*Delta__delta(t) + psi__q0 * D(Delta__delta(t))/omega__0 = p_(Delta__psi__d(t))/omega__0 - Delta__psi__q(t);

psi__d0*Delta__delta(t)+psi__q0*D(Delta__delta(t))/omega__0 = p_(Delta__psi__d(t))/omega__0-Delta__psi__q(t)

(1)

collect(lhs(eq_e5_9b), Delta__delta(t));

psi__d0*Delta__delta(t)+psi__q0*D(Delta__delta(t))/omega__0

(2)

desired := Delta__delta(t) * (psi__d0 + psi__q0 * D/omega__0);

Delta__delta(t)*(psi__d0+psi__q0*D/omega__0)

(3)

 

Download Q20220404.mw

How do I create a pointplot with different values of a parameter?

I tried

pointplot([seq([k, a(k, a0)], k = 0 .. 10, a0 = [0, 50, 100, 150, 200])]);
Error, invalid input: seq expects its 3rd argument, step, to be of type numeric, but received a0 = [0, 50, 100, 150, 200]
NULL;

ImportGraph reads one or more graphs from a file. For a file containing multiple graphs, the supported formats are digraph6, graph6, and sparse6. I notice that one option is "output = graph or list, or iterator". However, in my programming with Maple, I was reminded several times that list is only good for a small amount of data.  

Although I can convert the list to an array using the convert function, the time spent in the conversion process needs to be considered.

restart: 
with(GraphTheory):
L:=ImportGraph("C:/Users/eul10c.g6", graph6, output=list):#31026 connected eulerian graphs on 10 vertices graphs and Change to your path here.
convert(L,Array) 

So does it make more sense to provide an "output=Array" as an output option?

eul10c.txt

I am trying to decide O of times fo a computer process. I thought it was n^2*log(N) or something like that.

With 12  points, it may be hard to determine if O(N^4), etc.

See big-o.mw

When resizing a textplot the text is not scaled. 

I am trying to use "solve" to solve a set of 2 equations defined by using summation function "sum". But I got an error saying "Error, (in sum) summation variable previously assigned, second argument evaluates to 3 = 1 .. 2". 

The Maple code is listed here

restart;
N := 2:
var:= seq(alpha[n], n = 1 .. N):
v(x):=sum(alpha[n]*phi[n](x), n = 1 .. N):
R(x):=diff(v(x), x $ 4) - p/EI:
eqs := seq('int'('R(x)'*phi[n](x), x = 0 .. L) = 0, n = 1 .. N):
for n to N do
    phi[n](x):= sin((2*n - 1)*Pi*x/L):
end do:       
solve({eqs}, {var});
Error, (in sum) summation variable previously assigned, second argument evaluates to 3 = 1 .. 2

current_mirror.msim

I try to simulate a current mirror model, but it doesn't work and say "cannot evaluate the solution past the initial point, problem may be complex, initially singular or improperly set up". Maybe some incorrect parameters are set there, could you fix it? 

Hi,

While playing with this, I got:

> sum(Beta(k,1/2)/(2*k+1)^2,k=1..infinity)
Error, (in SumTools:-DefiniteSum:-ClosedForm) summand is singular in the interval of summation

I don't see how this can be singular, as Beta(k,1/2) is trivially bounded for k>=1, and sum(1/(2*k+1)^2) is absolutely convergent.

Maple is still able to evaluate numerically the inert sum (I get 0.3361376233). If I replace Beta with the expression with GAMMA, I get a result with MeijerG, that doesn't seem to help much for numerical evaluation, as it takes a long time and gives the wrong result -1.966769953*10^10 - (6.886827095*10^8)*I.

I have no reason to expect a closed form for this sum, but the error is surprising. And I don't know MeijerG well enough to explain the numerical error either. It fails with Maple 2020, 2021 and 2022.

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"?

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