Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Is there any predefined command in Maple that you can run it on a Maple code file such as an mpl file, or just on a piece of code written in the worksheet file and it edits the code by the easy usual styling preferences such as what pylint does in Python? Adding spaces arround ":=" or adding indentation etc.

to make this image I have just defined

f := (x, y) -> piecewise(y <> 0, 2*arctan((sqrt(y^2 + x^2) - x)/y), 0 < x and y = 0, 0, x < 0 and y = 0, Pi, x = 0 and y = 0, undefinied)

contourplot(f(x, y), x = -1 .. 1, y = -Pi .. Pi, color = black, numpoints = 10000);

ofc I could define z:=x+I*y and take


contourplot(argument(z), x = -1 .. 1, y = -Pi .. Pi, color = black, numpoints = 10000);

 

but I don't know how to delete this "tail" , I want to show only the ray (I thought that definition of argument in MAPLE is problematic so I redefined it but it doesn't matter)

I need this to create phase portrait and make better visualisation for complex function in MAPLE, so I would like to make and argument of function as two variable function which is modified such that this "tail" disappeared, thanks in advance

I want to find all roots of an function.we think there maybe 35 roots, but the commands


1. "SolveEquations" gives us 26 roots,

2."fsolve" gives us 10 roots,

3."Student[Calculus1]:-Roots" gives us 29 roots,

4.the proc "findroots" written by @acer 6 to 10 roots.

 I have tried everything but i cannot find all roots, what is th problem?
can anyone help?how many roots are there? and how to find all of them?

problem.mw

EDIT: the uploaded file is edited.

Hi.

I experience "broken links" in Maple. That is when I've used the the search field Alt+S or visited the help pages, very often thereafter I have to restart Maple in order to use e.g. the Help again, a task or whatever is essentially a link. Is this a known problem in Maple and if what do I do remedy it.
Thanks in advance.

BAC  and angle OAC

Hi!

I am double checking some textbook methods involving the arc length of a parabolic function of y.  I need to calculate the x coordinate that represents half the arc length of the parabola from x=0 to x=1

I have included my work in the form of a maple worksheet.  Help on this would be appreciated.

Have a great day!Test_solve_for_x.mw

plot3d([arctan(-tan(u/4)) + ((cosh(v) - sinh(v))*sin(u))/2, -v/2 + ((cosh(v) - sinh(v))*cos(u))/2, 2*(cosh(v/2) - sinh(v/2))*sin(u/2)], u = 0 .. 6*Pi, v = -1 .. 1, grid = [80, 15], orientation = [50, 79], shading = XYZ, style = patch)

I started to draw minimal surfaces in Maple and I noticed a problem with the parameterization of the function. When I have piecwise function like this arctan(-tan(u/4)) which graph I sent below the 3dplot shows this discontinuity. If it was only 2dplot I could use discont in the code but here I don't see a good solution.

I found these two posts but I can't translate it into a problem with the given parameterization, thank you for all advise.

https://www.mapleprimes.com/questions/200617-Analog-Of--Disconttrue--In--Plot3d

https://www.mapleprimes.com/questions/151216-Maple-Plotting-Discontinuous-Functions


 

Instead of the nice output from the help, I get the following message:

with(GlobalOptimization);

          [GetLastSolution, GlobalSolve, Interactive]

GlobalSolve(x3 - y3 - x + y, {x2 + 2*y <= 6}, x = 0 .. 5, y = 0 .. 5);
Error, (in GlobalOptimization:-GlobalSolve) finite bounds must be provided for all variables

 


 

I have the following expresion:

G_{ik}=|u_{i} - u_{k}|-(u_{i}-u_{k})^2

 

Where i, k=1,2,3,4. How can I write this expresion in maple? I want to be able to write G_{1 2} and in the RHS

Hi all, 

I am trying to plot the amplitude spectrum of a square wave. I plotted the wave by using its fourier series but I want to find the 5th harmonic which should be around 0.5 however, maplesoft retruns it as 0.7 for some reason. When the stem plot is plotted even that look likes 0.5 at the 5th harmonic but the F(5) is giving wrong value. 

Please have a look at the screenshot and file attached. 

Pulse_width_8us.mw

 

(Note: Maple was not giving wrong answer, I accidently uploaded the wrong file and have edited/updated the question)

I want to perform a numerical evaluation of sums of integrals of relatively complicated functions. I know about the evalf(Int( )) and evalf(Sum( )) commands to numerically evaluate both sums and integrals individually. My question is: what is the time-efficient way to numerically evaluate a sum of integrals? 

Here is a simplified sketch of what I have.

Say I define my complicated function F of the variable x (which will be integrated over) and of some constant parameter n.

I am interested in numerically evaluating in a time efficient way the following sum of integrals of F:

Where should I apply the evalf() command(s)? Should I go evalf(Sum( evalf(Int( )))) or evalf(Sum( Int())) or sum( evalf(Int( ))), or something else? I am not too worried about the accuracy here: it is for plots mainly. How to make this numercal evaluation fast?

Bonus question. If now I make F also depend on t, and wish to define a function G(t) out of a linear combination of such sums of integrals: is the method the same? I can have G(t) defined numerically with a t dependance. For example:

Thanks a lot!

PS: F is a complicated function in the sense that it is rationnal in some (non-usual) polynomials defined by a Rodrigues Rormula. The integrand has no singularity on the domain of integration. I have Maple 2018.

complexplot3d((z - 1)/(z^2 + z + 1), z = -4 - 4*I .. 4 + 4*I, view = [-2 .. 2, -2 .. 2, 0 .. 2], grid = [70, 70], shading = zhue)

How can I change this color of complex plot to take mirror image of my enhanced portrait? I see this is inverse but I don't know the source of this situation. I guess that zhue is indicaded by H = arg(f(z)) L = l(|f(z)|) S=1 in MAPLE but I don't know how to transfer and change this to the second picture coloring. I built the code for the second picture using codes from this post:

https://www.mapleprimes.com/questions/226790-Is-There-Any-Maple-Code-For-The-domain

 

I want to present this complexplot with the same coloring so thank for all yours advise.

Dear Users!

Hope everyone is fine here. I want to formulate the table like give bellow (Table 5.17) in maple so that I can copy it in word file and can edit.

The values of y[1,1],y[2,1],y[2,2],y[3,1],y[3,2],y[3,3]...y[nops(HAq),nops(HAq)] present in the following maple code. Thanks in advance

Refine_Extrapolation.mw

First 417 418 419 420 421 422 423 Last Page 419 of 2216