Maple 2020 Questions and Posts

These are Posts and Questions associated with the product, Maple 2020

            We announce the release of a new book, of title Fourier Transforms for Chemistry, which is in the form of a Maple worksheet.  This book is freely available through Maple Application Centre, either as a Maple worksheet with no output from commands or as a .pdf file with all output and plots.

            This interactive electronic book in the form of a Maple worksheet comprises six chapters containing Maple commands, plus an overview 0 as an introduction.  The chapters have content as follows.

  -   1    continuous Fourier transformation

  -   2    electron diffraction of a gaseous sample

  -   3    xray diffraction of a crystal and a powder

  -   4    microwave spectrum of a gaseous sample

  -   5    infrared and Raman spectra of a liquid sample

  -   6    nuclear magnetic resonance of various samples

            This book will be useful in courses of physical chemistry or devoted to the determination of molecular structure by physical methods.  Some content, duly acknowledged, has been derived and adapted from other authors, with permission.

How I can show function w, on the 3d surface?

I want to show w (a function that shows mode shape or shows boundary condition) on the surface of the following plot3d?

This function changes the coordinates of some points and creates a different shape. this behavior occurs when geometry experiences some vibrational behavior.
Thanks

plot.mw

 

Hello, 

How can I solve this equation in Maple?

Please help me?

 

For the following equation, 

eqn:=1.35150599852371*10^10 = 2.45634141630387*10^7*x + 50.7216626470812*x^4 + 6.20132964743411*10^7*x^2 + 1.26328819483651*10^10 + 112528.172146835*x^3

using solve gives 4 real solutions

3.56789020177967, -3.99013603029896, -1017.86074450970, -1200.25966528805

Using RealDomain[solve] gives an error:

RealDomain[solve](eqn,x,allsolutions=true);
Error, (in assuming) when calling 'RootOf'. Received: 'the input range -1200.259665 .. -1200.259665 is invalid'

This is partly a bug alert, but any insight would be appreciated.



 

 I am new to Maple.  I will appreciate any assistance with a Maple iterative procedure to find the value of s at a given temperature for F(x,r,s, T) = 0 with all other variables fixed.  F is a complicated function.  

 

Is possible to operate Grid Computing Toolbox together with Maple on one local multicore machine?

If yes, what is the proper instalation/configuration procedure on Windows or Linux?

I want to get data from 2D plots and 3Dplots and want to export to Excel or Matlab.

 

For  2D plots, the following code works. The data can be exported to Excel. No problem.

restart: 

P1:=plot(sin(x));
data1:=op([1,1],P1); 

ExcelTools:-Export(data1, "C:/Users/student/Desktop/XLdat.csv", "Sheet1", "A1");
ExportMatrix("C:/Users/student/Desktop/XLdat.csv", data1); 

 

1. But the following code doesn' t work for exporting the data to Matlab. Why?

restart: P1:=plot(sin(x));
dataMat:=plottools:-getdata(P1);
dataMat2:=convert(dataMat,Matrix):
ExportMatrix( "test.mat",dataMat2, target=Matlab);

 

 

 2. How to write a code in order to get data from the 3D plot and to export to Excel or Matlab?

For example;

restart:
z=sin(x)*cos(y);
P2:=plot3d(z);

 

 

Maple 2020.2

Hello

I am trying to use Grid:-Seq to speed up some calculations.  To this end, I wrote the following procedure:

fun:=proc(model1::list,model2::list,vars::list,conds::set,tlim::numeric)
description "This function returns models with matching structures":
local ans1,ans2,res:=NULL:
if evalb(expand(model1)<>expand(model2)) then
     (ans1,ans2):=UtilsIORelation:-findMatchingStructures(subs(conds,model1),subs(conds,model2),vars,tlim):
     if nops(ans1) > 1 then
        res:=model1:
     end if:
end if:
return(res):
end proc:

I checked if the procedure works by issuing the following command

 

aux:=[seq](fun(modelX[i],model,vars,conds,2),i=1..nops(modelX)):

and it did work. The result is what I needed. 

But when I try it using Grid:-Seq instead of seq, I got the following error message:

infolevel[Grid:-Seq]:=3:
Grid:-Set(fun,findMatchingStructures,'model','vars','conds');
aux:=[Grid:-Seq](fun(modelX[i],model,vars,conds,2),i=1..nops(modelX)):

 

Error, (in fun) findMatchingStructures is not a command in the UtilsIORelation package.

 

What am I missing?   

Many thanks

 

 

 

How I can solve following differential equations.?

I want to plot phase diagrams versus time.

diff(xi[i](t), t) versts t (i=1,2,3,4,5,6)

66.mw

 

 

Hello.

I am currently working on a geometric proof, that cutting a cone can give you an ellipse. I have chosen the 'Dandelin spheres' proof, but i am having trouble plotting a hollow cone containing two solid spheres of different sizes. 

I thought i could maybe define each function, and then just display th surface area of the revolution of the cone, and the volume of revolution of the spheres in the same plotting table. However, this has proven more difficult than i thought.

f(x):=0.5*x

g(x):=sqrt(0.81-(x-2)^2)

h(x):=sqrt(3.57^2-(x-8)^2)

display([VolumeOfRevolution(f(x), x = 0 .. 10, output = plot, scaling = constrained), VolumeOfRevolution(g(x), x = 0 .. 10, output = plot, scaling = constrained), VolumeOfRevolution(h(x), x = 0 .. 10, output = plot, scaling = constrained)])

 

(I am aware that i have plotted the cone function (f(x), straight line) as volume and not surface area of revolution)
 

This does not give me one combined plot, but 3 seperate:(

I hope someone has the time to help!
Thank you

 

Why is a row of a matrix has type Matrix, but a column of a Matrix has type Vector (column vector)

I expected a row of a matrix to also be a Vector (row vector).

restart;
A:=Matrix([[1,2],[3,4]]);
A(1,..);
whattype(%);

A(..,1);
whattype(%);

This might be by design or documented somewhere. But I find it not consistent.  Either both results should be Matrices, or both should be Vectors (the more logical way).

 

Maple 2020.2 on windows 10.

Suppose that we have a excel file as follows:


 


We can import the excel file to Maple as follows:

restart:
ExcelTools:-Import("C:\\Users\\student\\list.xlsx", "Page1");
  • QUESTION 1: How to filter the cell including ".edu" in the column A and how to print them to column B as follows:

 

I am having problems with the code I am trying to write in Maple 2020. I have attached the code in this question. 

I hope someone can help me out.

 

Error, invalid input: rhs received 0, which is not valid for its 1st argument, expr

 

Thanks very much
 

Download EXAMPLE.mw

 

Hello,

When I typ:

> phi; kappa;

It gives symbols φ and K.

I do not want this, I want the words phi and kappa.

How do I turn this off?

 

I understand it has something to do with SYMBOL or a Palette?
I see a Palette left named 'Greek' or 'Trigonometric & Hyperbolic' that have phi in them, but how do I delete a Palette (If that is how I stop these symbols)?


I'm not really good with the software, I just use it for some school work.

Thank you in advance for your help!

Hey

 

Is it possible to draw a slope field for a second order differential equation with initial conditions?

 

1 2 3 4 5 6 7 Last Page 1 of 40