MaplePrimes Questions

I have a list of single digit integers

mylist:=[1,2,3];

and it is easy to use

for x in mylist do convert(mylist[x],binary) end do;

to obtain 1, 10, 11 as the result.

However if

mylist:=[1,2,25];

two values are converted sucessfully but the third produces "Error, invalid subscript selector"

whattype(mylist) gives "list"

whattype(mylist[3]); gives "integer"

 

 

 

Hi all,

is there some way to handle piecewise functions as if they were just another equation? In this case I´ve got a piecewise in 4 segments, one of them empty. The other segments are equations that solve a function for a variable under constraints, i.e. it shows somewhat like:

{(conditions1), q[O]=(...), (conditions2), q[O]=(...), (conditions3), q[O]=(...), else, []}

(I hope you get what I mean. The piecewise is a tad long and I wouldn´t...

Hi folks,

i am brand new to Maple so please excuse if i ask a probably simple question:

Is it possible to get data from the first row of an array into a DropDownBox?

 

I created an array named mat, if i type something like test:=mat(2..,1) Maple shows me the information i need in a column.

Now i want to create an Element (DropBox) in which i want to select data from a list that should show me the same information as the...

 

Hi,

I try to find minimum value for numbers as follow,

for i from 1 to 1000 do

x:= 1+i; 

y[i]:= 2*x+1;

a:=min(seq(y[k],k=1..1000));  print(a); od;

in this case the maple can not provide any solution

however, when i use 100 instead 1000 i obtain result as follow,

for i from 1 to 100 do x:= 1+i;  y[i]:= 2*x+1; a:=min(seq(y[i],i=1..100));  print(a); od;

could you please help me to solve this problem?

Has someone an idea how to create a hysteresis plot that models a system with hysteresis?

A simple plot can be created by plotting two arctan functions (g1,g2)

But, I'd rather need a continous function as in the second example (f1..3).

 

 

 

Dear all,

I'm learning an elliptic curve scalar multiplication algorithm on GF(p^m). I'm trying to find some examples about using Maple to implement an elliptic curve scalar multiplication algorithm on GF(p^m) so that I can learn and apply it to implement the algorithm I'm learning. 

However, I couldn't find any example up to now, maybe I'm unlucky.

Please help me if you know any Maple package or example that I can refer.

Thank you for your help in advance.

 If you see my last question "use fsolve or matrix dissection"CCC.mw 

I want to find C, i finally solve it and get My special C

Now , I Want tolve My problem in block mode,
CCCd.mw

this means that, My matrix elemnts are block matrix, and search for result,

 

I have been using release 14, but was wondering whether MAPLE now can do things standard in MATLAB, JAVA: Is there a way to use the mouse for extract the coordinates of a point from a maple-plot [[ e.g. want to use initialize a dsolve() by graphically selecting the initil data.]] going further, is there a way to "draw" a curve on a maple plot using the mouse -- and get the coordinates of points along the curve back into the worksheet )(e.g. as an array that can be further manipulated)?

Hi guys,

I am wriiting some work in Latex and need to input some Maple code into my Appendix. Does anyone know how to do this? Also, if i have separate sections of code to input in different places, can I create subsections of the Appendix to cater for this?

Thanks in advance

 

I just started using Maple few weeks ago, so i am very new to Maple. I tried to write a program to:

1. read data from excel

2. process the data obtained from different excel sheets to find different possible combinations and calculate costs

3. then to find the minimum cost option

program i wrote is

> with(ExcelTools);
> SHEET1 := Import("analysis.xls", "su1", "A4");
`output redirected...`> print(); # input placeholder

Dears, I wrote with maple the following expressions

if i <> k then

for i to M do

for k to M do

alpha :=(i, k)→evalf(((x[k]-x[i])*ydot[k]-(y[k]-y[i])*xdot[k])*dtheta[i]/((x[k]-x[i])^2+(y[k]-y[i])^2)^2)

end do

end do

 

else

beta :=(i)→evalf((1/2)*(y2dot[i]*xdot[i]-x2dot[i]*ydot[i])*dtheta[i]/omega[i]^2-Pi);

end if;

Matrix(M, M, (i, k) →`if`(i = k, beta, alpha);

I haven't really explored the use of dials and gauges.  Normally the data responds to the dial settings, but does it work in reverse?  Can we have the gauges set up so that they respond to the data, during for example say an animation or something?

 I don't really have anything specific in mind, I was just wondering if it could be done.

I am trying to define some AntiCommutator-Relation to work with operators depending on a large number of creation- and annihilation-operators in the fermionic case.

Let "b" be the creation and "a" be the annihilation-operator. Then i am looking, for example, for "a[i]a[j]b[k]a[l]a[m]"...

Now I define the relations:

################

restart

with(Physics)

Setup(quantumop={a,b},algebrarule={%AntiCommutator(a[i],a[j])=KroneckerDelta[i,j...

I have found out another problem with a maplet slider. It can not have a noninteger value. I put up with tickmarks which could be visible only for whole units (integers), but why there is not a possibility to obtain for example a value "0.4" from a slider?

Dear All,

 

I would like to ask either MAPLE is capable to solve >2 boundaries value problem.

Actually I'm solving a system of ODEs in a membrane divided electrochemical cell, basically a REDOX process.In 1 part I have 2 species reacting and in another part I have 3 species reacting , 2 of the species exist in both part.

At the end I wanted to coupled all the species together.

So basically I have 4 boundaries and I would like to solve it simultaneosly.

First 1965 1966 1967 1968 1969 1970 1971 Last Page 1967 of 2431