Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hello, There seems to be a bug in the int() routine when CPV is being used i.e.

restart;
f1 := (int(t^(2*a - 1)/(-t^2 + 1), t = 0 .. infinity, CPV = true) assuming (0 < a, a < 1));

the result given is

f1 := Pi/(2*sin(Pi*a)*(-1)^(1 - a))

but the correct result is

f1 := Pi/2*cot(Pi*a).

 

I need to use a remote machine with an outdated Maple 2016. But I have written my own package in Maple 2019 / 2020 on my laptop. When I try to load my code in Maple 2016, I got the error

Error, unexpected export declaration in module body

What are the main changes to the module system in the Maple language since the 2016 version? How should I modify the code to run it successfully? (I encounter no errors for other code which only contains procedures but not modules.)

I create a table of 3D points in one worksheet and would like to use these values at a later time in a separate worksheet.

What is the simplest way to do this?


 

restart

with(LinearAlgebra)

InvT := Matrix([[c^2, s^2, -2*s*c], [s^2, c^2, 2*s*c], [s*c, -s*c, c^2-s^2]])

Matrix(%id = 18446746411704779590)

(1)

T := Matrix([[c^2, s^2, 2*s*c], [s^2, c^2, -2*s*c], [-s*c, s*c, c^2-s^2]])

Matrix(%id = 18446746411704773678)

(2)

c := cos(p)

cos(p)

(3)

s = sin(p)

s = sin(p)

(4)

Q := Matrix([[Q11, Q12, 0], [Q12, Q22, 0], [0, 0, Q66]])

Matrix(%id = 18446746411704759470)

(5)

Q11 := E1/(-v12*v21+1); Q12 := E2/(-v12*v21+1); Q66 := G12

E1/(-v12*v21+1)

 

E2/(-v12*v21+1)

 

G12

(6)

E1 := 0.233e12; E2 := 0.231e11; v21 := 0.2e-1; v12 := .2; G12 := 0.717e10

0.233e12

 

0.231e11

 

0.2e-1

 

.2

 

0.717e10

(7)

R := Matrix([[1, 0, 0], [0, 1, 0], [0, 0, 2]])

Matrix(%id = 18446746411704747062)

(8)

Qbar := Matrix([[Qb11, Qb12, Qb16], [Qb12, Qb22, Qb26], [Qb16, Qb26, Qb66]])

Matrix(%id = 18446746411704742726)

(9)

InvR := MatrixInverse(R)

Matrix(%id = 18446746411704745726)

(10)

eq1 := Qbar = InvT.Q.R.T.InvR

Matrix(%id = 18446746411704742726) = Matrix(%id = 18446746411704732718)

(11)

plot(Qb11, p = 0 .. 9)

Warning, expecting only range variable p in expression Qb11 to be plotted but found name Qb11

 

 

NULL


 

Download plotting_elements_of_matrix.mw

How to solve these systems of BVP and obtain values for gamma term.

Hi

I was trying to find the inverse of a function where the domain has been restricted. For example

solve(x=subs(x=y, x^2+8*x), y, useassumptions) assuming x::RealRange(-4, Open(infinity));

and my hope was that including the assumption would result in a single solution but it still gives me two solutions as it would without the assumption.

I would like to algorithmically end up with a single solution. Currently I am only working with functions that have variables to the power of 0, 1 or 2 and additionally square roots, but a more general method would be optimal. What am I doing wrong?

Can you use the Dirac function in different coordinate systems?

Dear all

I have a second order PDE, i used pdesolve but no solution obtained, why?

pdsolve_pde.mw

thanks

 

 

Is there a way to ask Maple to re-write the expression 

a:=1/3 -exp(-3)/3 into a:=1/3*(1-exp(-3))  ?

The command "factor" doesn't seem to work. Thank you.


Can the number of frames per second be changed programmatically in animate and/or animatecurve ?

Thanks in advance

I should know this, but I don't: Is there a plotting command to plot a list of points, like so:

list:=[[x1,y1],[x2,y2],etc...]; plotlist(list);

(a Vector of points would also be ok)?

There is plots:-pointplot which plots two Vectors (or maybe lists) against each other.

plots:-listplot plots a list against the index. Both are useful commands I employ a lot, but sometimes I'd like to plot pairs as above directly.

Note that I do know how to transform the list of pairs into two lists, or whatever; that is not the issue. I am looking whether there is a command that does this by itself, transparently, before I program myself such a routine because I am too dense with the Maple Help facility.

Thanks,

Mac Dude.

 

Using insert sequences: `%*`(seq(...))

 

Behaves very poorly when the sequence has one element. E.g., if this is a double sequence(say a double sum) then when the inner seq/sum has one element the inert visual is poorly displayed with extra junk rather than just showing one element.

`%+`(floor(5 %/ (2 %* 3 %* 5)))

 

E.g., rathernt han just showing:

(floor(5 %/ (2 %* 3 %* 5)))

 

Is there any way to get it to play nice without having to modify the functions/(this is a global problem so it deserves a global solution rather than ad-hoc that has to be applied to every usage).

 

 

I have some algebraic expression which I want to expand.

I used the ExpandSteps command to show me the steps, but I guess I used it incorrectly.

Attached below the file with the commands.

It should be expanded to -\Delta*\sin^2(\theta), but I want maple to show me the steps.

ExpandSteps.mw
 

"with(Student[Basics]):  Delta:=r^(2)-2 M*r+a^(2);  rho^():=sqrt(r^(2)+a^(2)*(cos(theta))^(2));  ExpandSteps((a^(2)*sin^(2)(theta)-Delta^(2))*((r^(2)+a^(2))^(2)-a^(2 )*Delta*sin^(2)(theta))*((sin^(2)(theta))/(rho^(4)))-(4 *a^(2)*M^(2)*r^(2)*sin^(4)(theta))/(rho^(4)))"

Error, (in Student:-Basics:-ExpandSteps) too many levels of recursion

 

NULL


 

Download ExpandSteps.mw

 

Let A(-2,3,-5),B(-6,1,-1),C(2,-3,7) and point D on BC where the angle  DAB = angle DAC  .Find the equation of line AD?

First 384 385 386 387 388 389 390 Last Page 386 of 2224