Items tagged with list list Tagged Items Feed

 

Hello

I have Problem with the Maple command plotsetup, it does not seem to work within an if-statement.

What i would like to do is this:

1. Make a matrix with 0 or 1 as enteries

2. convert this matrix into a list where the 1's are points. (So the Matrix entery Matrix[1][1]:=1 would give the listvector:=[1,1]

3. plot these vectors as graphs and store them with the help of plotsetup

4. changing the matrix and rinse and repet 2,3,4 until satisfied

I need to test a list of numbers to find if any of them are complex. if a complex is found then remove that complete row from the list. the potential complex numbers in my list are a, b and c. b is complex i.e has a non zero imaginery part in row 1 so only row 1 should get deleted. the a b and c were originally generated from the arcsin function. Would appreciate help on this. I know it should be simple enough to do. Thanks in advance.

I have a column vector of lists. FWIW, it was generated by numerically solving an ODE and then map-ping the solution over a vector with values for the independent variable, like "yt:=map(solnn,xv)" where xv is a column vector with floats and solnn is the result of a dsolve(...,numeric). Each element of the solution vector yt has the form [t=..., y(t)=..., d/dt(y(t))=...] and has the type List.

I want to extract the solutions for y(t) (i.e. the numbers only) into a new...

For example, in the list [1,1,1,1,2,4,6,1,9], how many 1s are there?

Is there a procedure in Maple? Or how can I manage to do it?

I need to make a procdeure which checks whether a list L is a palindrome or not. Any help would be appreciated.

Up until now, I have been using lists instead of sets in solve() in order to ensure the first equation is solved for the first variable, the second for the second, etc.  However, I have run into a case for which using an equation list and a variable list does not work, but the equation list alone is fine, and sets of both are fine, etc.  I would be grateful if somebody can explain why the first statement below does not produce a solution.

> soln := solve([foc1 = 0, foc2 = 0, foc3 = 0...

I need this quite often, but never found a nice way of getting the index of minimal or maximal value of a Vector (or a list or whatever). Is there an easier way than the following?

N := 15:
L := LinearAlgebra[RandomVector](N):
m := min(L):
for i to N do if L[i] = m then print(i); break end if end do;

Hi everyone,

I am trying to build a function of dsolve/numeric solution which would not include procedures for defining the value of it.

First, I need to extract solution as a 2-d array, which will contain all evaluated points of solution.

Next, I want to define a function from this set of points (like interpolation).

Say, I have an array or list of numbers (2-d points).

Now comes the main question: is there a way to interpolate some...

Dear Maple users

The formula f = c/λ is expressing the frequency in terms of the velocity of light  c and the wavelength λ. Lets say given not just one wavelength, but a whole list af wavelengths. The values have units attached. I wonder if there is an elegant way to have Maple calculate the all the frequencies, eventually delivering them in a new list?

I want the units of the output reduced to SI-units,...

Let a list of n positive integers be given, e. g. [2,1,4].
Let us consider all sums of  all its members signed by +-, e. g
-2-1-4=-7, -2+1-4=-5, -2-1+4=1, ... .
How to find the sum having the minimum  absolute value with Maple?

have a list of lists, and I would like to write each of these lists on a separate file, *on a single line*.

For instance consider the following trivial example:

P := [[-.3819660120, .6180339880, -10000, -2], [.6180339880, 1.618033988, -10000, -1], [1.618033988, 10000, -10000, -.5], [2.618033988, 10000, -.5, -0.1e-3], [2.618033988, 10000, 0.1e-3, .5]]

I would like to create
 + a file named  P1.dat containing the line
     ...

I have a procedure that gets two lists A and B, I want to restore the name of the entry lists as string. How can I do that?

 

f(A,B) [procedure]

e.g. a(MyList,LL)

 

I want to restore a:="MyList" and b="LL"

 

TIA

A little problem

November 15 2011 by Fei Wang 15 Maple 15

When using the command "for", the results are placed in a column,such as if we input
for i from 1 to 3 do  i end do, the results are showed as

1

2

3.

This style is not convient to use for following computation. So how to put all results into a list or set ?

Hi i'm new to maple.

Is there a way to remove commas from a list?

I was able to remove the list from its brackets []
but i was wondering if I'm able to remove the commas also?

Giving a expression as follows, how to extract  powers of g to a list?

 In this example the list of powers of g is {2,1,2}

6*F*u[0, x]*g[x, x]*g^2+24*F*u[0]*g[x]^3-18*F*u[0]*g[x]*g[x, x]*g+2*F*u[0]*g[x, x, x]*g^2

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