Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Creating a simple function with mathematica...' topicStudent Support Forum > General > Archives > "Creating a simple function with mathematica..."

Next Comment >Help | Reply To Topic
Author Comment/Response
11/21/04 10:53am


I'd like to create a function like that :

The Function
* parameters : two lists
* returns : a list
I also need two local variables... I'm not sure how I could declare them...

I think I tried everything but I can't find a working solution :(

Could somebody please tell me how to do? Just the first line

I tried:

MyFunction[MyList1_, MyList2_] :=(???)[
{MyLocalVariable1, MyLocalVariable2},

MyLocalVariable1 := Smthg

For[MyLocalVariable2 = 1, .....

Return MyLocalVariable1

It won't work... What should I put instead of (???)

Thanks in advance :)

URL: ,

Subject (listing for 'Creating a simple function with mathematica...')
Author Date Posted
Creating a simple function with mathematica... ITM 11/21/04 10:53am
Re: Creating a simple function with mathematica... highegg 11/22/04 05:15am
Next Comment >Help | Reply To Topic