andyg2412

0 Reputation

2 Badges

14 years, 226 days

MaplePrimes Activity


These are questions asked by andyg2412

if i define

 

r[1]=4

r[2]=-7

r[3]=2

r[4]=-1

 

how can I find the number r that is the minimum, and define it as x?

so in this case, the minimum is -7 (r[2]), so i would want to define x as 2. 

Hi,

I want to create a sequence of numbers within a vector. For instance, I'd like for i from 1 to 4 to be the co-ordinates in a vector, ie [1,2,3,4]

 

This is what I have tried:

Vector([for i from 1 to 4 do i, end do];);

in hope of obtaining [1,2,3,4], but get error messages. Can anyone help?

Page 1 of 1