## 15 Reputation

10 years, 243 days

## Mapping using multiple vectors...

Maple

I'm looking for a quick way, preferrably without using any loops to 'map' a function using several vectors.

In the single vector case, this is quite easy, but with multiple vectors, I'm not sure if map is the correct command to use.

For example:

u:=<1,1,1>;
v:=<2,3,4>;

f:=(x,y)->ln(x-y);

What I'd like to do is create a new vector from the map of the function onto both vectors,...

## Writing Procedures inside of For Loops...

Maple

I'm trying to write a for loop that will generate several procedures, which doesn't quite seem to work as expected.

Here is the sample code:

for j from 1 to 2 do
f[j]:=proc(x,y)
x+y^(j)
end proc;
od;

Then if you run the following, you get:

f[1](x,y) = x+y^3

f[2](x,y) = x+y^3

Whereas, I'd like to have:

f[1](x,y) = x + y^1

f[2](x,y) = x + y^2

Any suggestions on why the j value...

## Using listcontplot with Matrices...

Maple 14

Hello,

I was wondering if someone could assist me with the code for listcontplot.

I've tried the following:

M:=Student[LinearAlgebra]:-RandomMatrix(4,4);

listcontplot(M);

But this does not work.  Is there any way to use listcontplot, listcontplot3d, or any other command to generate something similar to what Excel calls a Surface - contourplot?

Thanks.

 Page 1 of 1
﻿