Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

How do you print [0,infinity) in Maple 13 like
?

RealRange does not seem to work.


Thank you!

mapleatha

This has always made me wonder everytime I type it.

The first command I always type on a new worksheet is restart.  I don't think I have never done this. 

Is there a reason it needs to be manually entered and how many people DO NOT start a worksheet with a restart?   

Is there a reason to not make this automatic with initial loading of a worksheet?
 

Thanks,

Bill

The plot command below results in the following graph:

However, I want the x-axis to go from 0..24 and the y-axis from 0..100. I can adjust the shafts temporarily via Axes-Properties so that I get the following plot:

However, as soon as I recalculate the plot command, I get back the original plot. Is there any parameter in the plot command where I can set x-min, x-max, ymin, ymax?

Regards,

Christer

I'm adjusting a Maple 2015 code for it works correctly in Maple 2020.
A being some matrix, this command executed in Maple 2015 returns a plot with the desired color.

matrixplot(A, heights=histogram, color="X11 Thistle1")

When executed in Maple 2020 the color of the bars is desperatly black.
Note that syntaxes like color=red or color=ColorTools:-Color([1, 0, 0]), despite what seems to be said in the matrixplot help page (wherein the reference to plot:-color help page) keep returning a black plot.
The only thing I'm able to do to turn the plot to red is this

F := (x, y) -> 1:
matrixplot(A, heights=histogram, color=F)


How can I obtain a plot with the color I want?

PS: maybe I'm not very astute, but it looks like the help pages are not very explicit on this point.

Requesting a code to compute the following self referencing integer sequence :

a(1)=1, a(2)=0. Thereafter, if a(n) is a novel term then a(n+1)=Min{|a(n)-a(k)|; 1<=k<n}. Otherwise, if a(n) seen before (most recently at a(m)), then a(n+1)=n-m.

First few terms are:

1,0,1,2,1,2,2,1,3,1,2,4,1,3,5,1,3,3,1,3,2,10,5......

Desirable to have option for graphing results up to some value of n.

Thanks in advance for any assistance

David.

 

Hello, I'm a student in high-school, and i was wondering if it is possible to have multiple people writing in the same document at the same time. It would make groupwork a lot easier if I could do the writing like e.g.: google docs.
-Max  

Hello there, 

I would think that those two expressions are same as long as L::positive, omega::positive, R::positive, but when I tried in Maple, I could not get that result. The following worksheet shows my attempts. Would you please tell me how to get the answer, true, instead of false from the expression comparison?


 

restart:

arctan_expression := arctan(omega*L/R);

arctan(omega*L/R)

(1)

arctan_expression2 := arctan(R, L*omega);

arctan(R, L*omega)

(2)

evalb(arctan_expression = arctan_expression2) assuming L::positive, omega::positive, R::positive;

false

(3)

is(arctan_expression = arctan_expression2);

false

(4)

 


Best Regards, 

In Kwon Park 

Download Q20210308.mw

 

PLs, correct my code about how to find the derivative by using the loop concept in maple?

help_derivative_in_loop.mw

Hi,

I'm using Maple on a linux partition and for some time now I can't really use it anymore. For example, when I open a help window, I can't scroll through the content, and scrolling gets stuck if an image needs to be displayed. I think my partition is too full and does not have enough free space left. Doesn't Maple create a temporary file that is too big for the space available?  But I have another partition that is not in the same format as the linux partition but is nevertheless readable and writable. Is it possible, if the problem is a temporary file, that this file is written to this other partition to avoid this storage problem?
Or could it be due to a memory problem (RAM?) that did not occur before?

Say that we have three matrices X, Z, and A of equal size such that Size(X) = Size(Y) = Size(A) = [10 14].

Here, X[i, j] = X[i + 1, j] and Y[i, j] = Y[i, j + 1], i.e. X and Y are the grid in Matlab notation.

i found that countourplot can provide the contour plot for a bivariate function f(x,y). i was wondering whether this can also be done in Maple for matrices. Any help is highly appreciated – thank you,

Fede

 

 

Hi,

I want to solve this system of PDEs. Please let me know how I can solve it.

Kindly find both my code written in Maple and the image of the problem.

Best,

 

PDE.mw

I needed to normalize the eigenvectors of a matrix. (I did not see an option to do this so far in LinearAlgebra). So I figured I just need to map LinearAlgebra:-VectorNorm(x,'Euclidean')  of each vector of the generated eigenvectors matrix,. Where here means the vector in the matrix. But do not see a way to do it. 

I ended up just using seq, which works fine. But was wondering if there is a way to do it? map function on each column (or each row) and have the result be matrix ofcourse. 

Will show my attempt using map, and then using seq

Sx:=1/sqrt(2)*Matrix([[0,1,0],[1,0,1],[0,1,0]]);
lam,v:=LinearAlgebra:-Eigenvectors(Sx);

Just doing the following does not work ofcourse

map( x->x/LinearAlgebra:-VectorNorm(x,'Euclidean'), v) 

So I used seq

Sx:=1/sqrt(2)*Matrix([[0,1,0],[1,0,1],[0,1,0]]);
lam,v:=LinearAlgebra:-Eigenvectors(Sx);
normalized:=[seq( v(..,i)/LinearAlgebra:-VectorNorm(v(..,i),'Euclidean'),i=1..LinearAlgebra:-RowDimension(v) )];

Will be nice if one can use map or variation of it, which works on either columns or rows at a time.

Maple 2021.2

I am doing some solution for pde :

restart;
with(PDEtools);
with(plots);
alias(u = u(x, y, t), w = w(x, y, t), f = f(w));
pde := diff(u, x, x, x, y) + 3*diff(u, y)*diff(u, x, x) + 3*diff(u, x)*diff(u, x, y) + 2*diff(u, y, t) = 0;
pde2 := subs(u = D(f)(w)*diff(w, x) + u0(x, y, t), pde);

pde3 := expand(pde2);


after this step i want to substitute 
D(f)(w)*D^(3)(f)(w)= (-c/3)*D^(4)(f)(w)

so i apllied command as this :

pde33 := subs({D(f)(w)*(D^(3)(f)(w) = -c/3*(D^(4)(f)(w)}, pde3);

but i not able to replace it !

please help in it ! Thanks!


 

Hi!

I want to import the data included here to my Maple code:

https://www.gw-openscience.org/GW150914data/P150914/fig2-unfiltered-template-reconstruction-H.txt

There are 3 columns of data: time, NR strain, Reconstructed strain. I am not interested in the middle column; I want to plot the reconstructed strain as a function of time. I could use some help.

Cheers!

Dear all

I compute by hand the bifurcation point of an ode, 
I fouded x=-1/2 a+ 1/2 corresponding to  h= (a+1)^2/4  with 0<a<1 

The same solution is obtained using Maple code. 
I tried to plot the birfurcation diagram to stech with kind of bifrucation ( saddle, Holf . transcritical , periodic, or someting else)
But I get 
Error, (in plots/implicitplot) invalid input: invalid range for first variable

bifurcation_diagram.mw

thank you for any help 

 

First 306 307 308 309 310 311 312 Last Page 308 of 2097