## 444 Reputation

16 years, 21 days
I study psychology and economics with a very quantitative approach to each. I specialised on statistical methods, quantitative diagnostics, portfoio analysis and econometrics. Furthermore I am interested (and above that theoretically and empirlcally involved) in poker, chess and performing arts.

## Remove a chosen element from subsequent ...

I defined a procedure with two arguments.

The first one called Options is a list of lists (but no listlist), the second called Paratemers is a list of intergers.
Anyway both lists have the same number of elements and the ith element of Options is connected to its ith counterpart in Parameters.

One part within that procedure looks for an element in Parameters, that has a value of -1.

If that is the case, its counterpart in Options which will then be...

## How to define a boolean function?...

I´d like to use the remove command, to select elements of a list.

E.g.

L:=[1,2,3,4,5,6,7,3,9];

L1:=remove('boolean function',L);

Where can I get an overwiew of all boolean functions, i.e. commands, that output true, false or fail?

E.g. I wanted to simply say

L1:=remove(<>3,L);

which should just leave all "3" values in L1, but that didn´t work. So I needed to define a boolean function to say "if element...

## How do I refer to the list´s name instea...

Maple

E.g. I have three lists:

L1:=[1,2,3];

K1:=[4,5,6,7,8];

K2:=[7,8,9,10,11];

and if needed I have a fourth list

ALL:=[L1,K1,K2];

Now I´d like to add 99 to all lists whose name contains a 1 and add a 999 to all lists whose name contains a K.

The problem is, when I refer to the elements of ALL, Maple "thinks" I refer to the list. But how do I tell Maple,

that I want to refer to the lists´ name instead of the list itself ...

## How may I assign the elements of a list ...

Maple

For example I tried:

L:=[a,b,c];
for i in L do
i:=Array(1..16):
end do:

I wanted to create three Arrays a, b and c.

## How to get a random selection from a spe...

Maple

I have an Array A with 90 rows and 16 columns.

The first column of each row denotes the name of a card, while the other 15 colums of each row specify certain characteristics of that card.

Moreover I defined a couple of selection rules Ri, to define sublists of A, which contain only the entries of the first column of A and where the number of elements in Ri is known a priori.

E.g.
R1:=[0\$14]:
q:=1:
for i to 90 do
if A[i,2]=4 or A[i,2]=0 then
R1[q]:=A[i,1]:
q:=q+1:
end if:
end do:

 4 5 6 7 8 9 10 Page 6 of 12
﻿