MaplePrimes Questions

I'm trying to generate 100 equation to solve them numerically , buy maple won't let me , here's the code :

for i by 0 to 99 do
a := a[i]+a[i+1] = i^2
end do ;

I bought a new macbook pro and want to move my maple2015 software and licence to this new platform?  Simply copy my folder to the new application folder? How do I reinstall the necessary licence ?

Thx for your help

Dear all:

I have used the "diff" command in Maple to help me derive a huge and very long function, and now I want to convert this huge expression from Maple to Matlab format, for example, into a Matlab .m file. The format of this expression in Maple is very different from Matlab.

So could you help me with this problem?

Thank you all.

with(DEtools):
rho := 0.1;
w0 := 2;
sys := {diff(x(t),t) = y(t),diff(y(t),t) = -2*rho*y - w0^2*x};
DEplot(sys, [x(t), y(t)], t = 0 .. 12, [[x(0) = 1, y(0) = 0]]);

i use flow above, would like to plot a circle move from right hand side to left hand side

and see how a circle influence the flow diagram in animation like weather diagram

Hello,

In my worksheet (dedicated to the calculations of mechanism geometry), i'm trying to have a more "POO" approach (Programming Oriented Object).

In this sense, I begin to get more familiar with module and package. Attached, you can find a worksheet which gives the idea of the structure of my code. With this code, the module is very useful for me to call some results (attributes in terms of POO).

My way of doing is :
1) at the beginning, i use Maple as a calculator that is to say that at each prompt, i calculate expressions.
2) i try to make modules so as to have a easier access to the data that I calculated.

However, as the definition of the expressions that I calculated are outside my module (for example, in the worksheet attached, i calculate the expression of Gamma and psi before in my worksheet and i retrieve these expressions in the module with "global"), i can not use this module independently of this worksheet and namely in a Excel Addin.

In fact, the module works if the worksheet has been launched one time and consequently the expression of psi and Gamma are in the kernel (or in memory i want to say).

Question:

How can I do to transform my module in a independent and thus portable module ?

One idea will be to copy/ paste all the geometric calculations which have been done line by line inside the module.
However, i have many lines in separated prompts and moreover, it is always convenient to keep the line by line approach in the worksheet to make some tests.

I look forward to hearing your tips.

Thanks a lot for your help

MonPackage_ProcModule_variante4.mw

 


 

Is it possible to plot chart like this in Maple?

I'm inputting an optimization problem into Maple, and somewhere along the way my code stops working.  (Code is at the bottom.)

I need to find the second derviative for my Profit statement [(p-c)d]. I know the first derivative, deriving for p is, is d. d=ap-b, so deriving that statement for p should equal −abp−b−1 . For some reason, Maple is showing my second derivative as equal to zero.

Can anybody help me? TIA!

restart;

Profit := (p-c)*d;

d;=ap-b;

print(Solution); 

dProfit1 := diff(Profit, p); 

dProfit2 := diff(dProfit1, p); 

ddProfit2 := diff(Profit, p, p); 

pOpt := solve(diff(Profit, p));

                           Profit:=(p-c)ap-b

                          d:=ap-b

                            Solution

                          dProfit1:=ap-b

                             dProfit2:=0

                           ddProfit2:=0

                         pOpt:={ap=0, b=b)

 

 

Hello guys,i have some systems of diff eq,i tried to solve using dsolve but i have error.
system.pdf

system_solve.mw

When I was using Maple 2015, I can start Maple in Linux Mint Sarah, if Maple 2015 was installed in another Linux Distribution (that is, like Debian Jessie), as follows.   Suppose I have installed Maple 2015 in /home/programfiles/maple/maple2015, which is the location in Debian Jessie.  Start Linux Mint Sarah, then mount  the /home partition of Debian on the mountpoint /debian-home.  Now copy the file /debian-home/programfiles/maple/maple2015/bin/xmaple to be xmaple-a, and change the path in xmaple-a. Then copy the file  /debian-home/programfiles/maple/maple2015/bin/maple to be maple-a, and make some changes in maple-a. Then open a terminal, run the command  ./debian-home/programfiles/maple/maple2015/bin/xmaple-a. Thus I can start Maple2015 in Linux Mint Sarah, althought I have reinstalled Maple 2015 in Linux Mint.

But the problem occurs, when I upgrade to Maple 2016, together with Linux Mint from Sarah to Serena, because the method above does not work.  It gives information saying that the Host ID is wrong. But when I start Debian Jessie, I can start Maple 2016, and it works very well. So, what should I do to start Maple2016 in Linux Mint Serena, without installing Maple2016 in Mint, because I have installed in Debian?  

sols[11][1] = [1,1];

sols[11][2] = [1,2];

sols[11][3] = [5,10];

...etc

animate(plot, sols[11][A], A=1..20, frames = 20);

Error bad index into Vector

animate(plot, [sols[11]], A=1..20, frames = 20);

this writing can be ploted, but when i play animation, can not see it draw step by step

plot([[1,1],[10,20],[30,23],[12,30]]);

all lines are in the same color, but would like to specify the final line [30,23],[12,30] another color how to do?

 

 

plot3d([[1,3,5],[10,30,55],[50,70,25]]);

there is no lines in plot3d

plot can do this, plot3d seems different

plot([[1,1],[10,20],[5,7],[2,3]]);

Let L = {a1, a2, ..., an} (or L = [a1, a2, ..., an]) with is homogeneous polynomial. How to create function createDegree() return elements of degree <= n from L.

Expamle. L = {a-2b, b^2, (a+c)^2}.

createDegree(L,1) return {a - 2b}.

createDegree(L,2) return {b^2, (a - 2b)^2, (a+c)^2, a - 2b}.

createDegree(L,3) return {b^2, (a - 2b)^2, (a - 2b)^3, (a+c)^2, (a - 2b)b^2, (a - 2b)(a+c)^2, a - 2b}.

Thanks you very much.

 

 

Hello everyone!

Could somebody help me with reading data from Huge txt-file? My file contains matrix with 10 columns and 10^6 rows. Datatype is float[8].

I use "ImportMatrix" comand to obtain data from file, but it is rather slow ~ 33 sec.

is there an efficient way to read file directly using Maple? Or I should use C-dll to read file faster?

I want to calculate the ratio of the length of day and night for every latitude on earth ?
but i confused on using Maple in a wise way for finding the formula !
this is my demonstration :

shekofte000.mw
 

Equations

 

the grat circle that divides the earth's surface into two dark and bright sides

[sin(t)*cos(tilt), cos(t), sin(t)*sin(tilt)]

[sin(t)*cos(tilt), cos(t), sin(t)*sin(tilt)]

(1.1)

circle of revolving of a point on earth in 24 hours

[sin(t)*cos(Latitude), cos(t)*cos(Latitude), sin(Latitude)]

[sin(t)*cos(Latitude), cos(t)*cos(Latitude), sin(Latitude)]

(1.2)

Visualization of dark and bright side the of earth

 

Explore(plots[display](plots[spacecurve]({[sin(t)*cos(tilt), cos(t), sin(t)*sin(tilt), color = red], [sin(t)*cos(Latitude), cos(t)*cos(Latitude), sin(Latitude), color = blue]}, t = 0 .. 2*Pi, scaling = constrained, thickness = 4, labels = [x, y, Latitudez], labeldirections = [horizontal, horizontal, vertical], axes = frame), plottools[rotate](plottools[hemisphere]([0, 0, 0], 1, capped = false, color = green, grid = [10, 10], style = surface), 0, tilt, 0), plottools[rotate](plottools[hemisphere]([0, 0, 0], 1, capped = false, color = black, grid = [10, 10], style = surface), 0, Pi+tilt, 0)), parameters = [tilt = 0 .. Pi, Latitude = -(1/2)*Pi .. (1/2)*Pi], initialvalues = [tilt = (1/2)*Pi+.409, Latitude = 1.16])

``


 

Download shekofte000.mw

 

First 1027 1028 1029 1030 1031 1032 1033 Last Page 1029 of 2428