Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hi,

Is there anyway to solve this equation for x(t) analytically in Maple?

m * diff(diff(x(t),t), t) = - m * A * sin(2*pi*f*t) - piecewise( abs(x) < x__max, 0, abs(x) >= x__max, -k*(abs(x)-x__max)*Sgn(x)) - diff(x(t), t);

m, x_max, f, A, and k are constant parameters.

Thanks,

Baharm31

 

In the help file the permitted declartions for the second argument of the Escape command from the StringTools package are html,regexp and xml, to not specify one, which as far as I can tell instructs maple to take all characters as plain text with no escape characters.

Is this the complete list of options for the form when using the escape command?

Or is it possible to custom build escape rules?

 

Sorry to bother you with another very basic question.

This very simple example shows that Maple gives the first value that is defined back, ignoring changes further down the definition chain.

Could someone explain why, and if there is a way to always get the updated values?


 

m := Matrix(2, 2, {(1, 1) = 1, (1, 2) = 3, (2, 1) = 2, (2, 2) = 4})

Matrix(%id = 18446745932232999750)

(1)

a := 1

1

(2)

b := m[a, 1]

1

(3)

a := 2

2

(4)

b

1

(5)

m[2, 1]

2

(6)

``


 

Download VariableIndex.mw

Hi,

I've been trying to replicate an example described in a book called "Quantum Mechanics Using Maple" by M. Horbatsch, but at the end, when I'm using fsolve it returns 0. instead .500 .

I'm using Maple 18, but I think this book was written using Maple V. I don't know if the syntax changes are causing this. I'm very new to maple. Here's my worksheet (qm_maple_-_periodic_potentials.mw) and book section (qm_maple_periodic.pdf). Thanks in advance!

I was wondering if there was any way to reassign the "||" operator to calculate parallel resistors?

like this:

R1 || R2 = (1/R1+1/R2)^(-1)

 

solve it by Maple , get the following form solution, what's the Int(1,0)

 


 

restart;

 

ODE :=diff(r(t),t)=r(t)*(1-r(t)^2)+mu*r(t)*cos(t)

diff(r(t), t) = r(t)*(1-r(t)^2)+mu*r(t)*cos(t)

(1)

dsolve(ODE)

r(t) = ((_C1+2*(Int((exp(t))^2*(exp(mu*sin(t)))^2, t)))*exp(2*t+2*mu*sin(t)))^(1/2)/(_C1+2*(Int((exp(t))^2*(exp(mu*sin(t)))^2, t))), r(t) = -((_C1+2*(Int((exp(t))^2*(exp(mu*sin(t)))^2, t)))*exp(2*t+2*mu*sin(t)))^(1/2)/(_C1+2*(Int((exp(t))^2*(exp(mu*sin(t)))^2, t)))

(2)

g := unapply(sqrt((C1+2*(Int((exp(t))^2*(exp(mu*sin(t)))^2, t)))*exp(2*t+2*mu*sin(t)))/(C1+2*(Int((exp(t))^2*(exp(mu*sin(t)))^2, t))), t)

proc (t) options operator, arrow; ((C1+2*(Int((exp(t))^2*(exp(mu*sin(t)))^2, t)))*exp(2*t+2*mu*sin(t)))^(1/2)/(C1+2*(Int((exp(t))^2*(exp(mu*sin(t)))^2, t))) end proc

(3)

g(0)

1/(C1+2*(Int(1, 0)))^(1/2)

(4)

``


 

Download m39.mw
 

I'm working along in Maple 2019 and then all of a sudden it freezes.  Anyone else have this?

Maple 2018 and earlier displayed an Array like this

In Maple 2019 I get this

How do I display Arrays in Maple 2019 like Maple 2018?

Why when I read a file in (image file - specifically a TIFF file) and then write the exact same file back out, it makes a file 30% larger.  Should it not be the same size??

Trying to solve this integral here. 

restart;
with(Statistics);

X := RandomVariable(Normal(10, mu));
                            X := _R
dummy := int(PDF(X, mu), r = -infinity .. 500);
                         /   /           2\\         
                         |   |  (mu - 10) ||         
                         |exp|- ----------||         
                         |   |        2   ||         
                         |   \    2 mu    /|         
          dummy := signum|-----------------| infinity
                         \       mu        /         
solve(dummy = 0.05);
 

What am I missing? Any ideas ? :)

How Do I set the Command Line Font in Maple 2019?

The default font is strange.  eq is displayed as a a lower case char like '8' followed by 'q'.

I would like to have something like courier 10, etc.

Hi, I am using the GroupTheory package and I wanted to created the following group in Maple:

I stumbled across this link https://www.maplesoft.com/products/maple/features/grouptheory.aspx and then tried to use the following commands to define this group in Maple:

1. First a defined a 12x12 matrix:

ct := <<e | p | q | r | s | t | u | v | w | x | y | z>, <p | q | e | y | u | w | z | r | x | t | v | s>, <q | e | p | v | z | x | s | y | t | w | r | u>, <r | z | t | s | e | y | v | x | p | u | q | w>, <s | w | y | e | r | q | x | u | z | v | t | p>, <t | r | z | x | w | u | e | q | y | p | s | v>, <u | x | v | p | y | e | t | z | s | r | w | q>, <v | u | x | z | q | r | y | w | e | s | p | t>, <w | y | s | t | x | z | p | e | v | q | u | r>, <x | v | u | w | t | s | q | p | r | e | z | y>, <y | s | w | u | p | v | r | t | q | z | e | x>, <z | t | r | q | v | p | w | s | u | y | x | e>>

 

2. Then I tried to define my  group using:

G := Group(ct)

 

However this doesn't work because I get the following error:

Error, (in GroupTheory:-Group) invalid input: arguments to GroupTheory:-Group, [Matrix(12, 12, {(1, 1) = e, (1, 2) = p, (1, 3) = q, (1, 4) = r, (1, 5) = s, (1, 6) = t, (1, 7) = u, (1, 8) = v, (1, 9) = w, (1, 10) = x, (1, 11) = y, (1, 12) = z, (2, 1) = p, (2, 2) = q, (2, 3) = e, (2, 4) = y, (2, 5) = u, (2, 6) = w, (2, 7) = z, (2, 8) = r, (2, 9) = x, (2, 10) = t, (2, 11) = v, (2, 12) = s, (3, 1) = q, (3, 2) = e, (3, 3) = p, (3, 4) = v, (3, 5) = z, (3, 6) = x, (3, 7) = s, (3, 8) = y, (3, 9) = t, (3, 10) = w, (3, 11) = r, (3, 12) = u, (4, 1) = r, (4, 2) = z, (4, 3) = t, (4, 4) = s, (4, 5) = e, (4, 6) = y, (4, 7) = v, (4, 8) = x, (4, 9) = p, (4, 10) = ...  (12, 8) = s, (12, 9) = u, (12, 10) = y, (12, 11) = x, (12, 12) = e})], do not match any of the accepted calling sequences

 

I don't know what's going wrong. It doesn't give a 2D Plot. Thanks in advance.

Temperature over 24hr period

 

y := 0.26e-1*x^3-1.03*x^2+10.2*x+34, 0 <= x and x <= 24

``

``

 

NULL


 

Download temperature24hr.mw

BE312-1920-CW2-Amended-Maple-Codemw-46469mw-46557_(1).mw

 

How do you run this code in Maple 2019 to Maple 18 because I can't see the output?

Thank you

I thought the easiest way to show the world map, a projected flat map into 3d was to use the builtin one and just transform it.  You can zoom into it and rotate it no problem but unforunately it's not as clean as I thought.  Is it possible to have cleaner shading manipulating the Builtin map to 3d?

with(plots):
with(plottools):
with(DataSets):
with(Builtin):
m := WorldMap():
m1 := Display(m)
                                

to3d := transform((x, y) -> [x, y, 0]):
m2 := to3d(m1)
                               

display(m2)

 

 

First 581 582 583 584 585 586 587 Last Page 583 of 2224