Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "What was the name of the function"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:1+8 =



Original Message (ID '44561') By Peter Pein:
Hi, it is called "f" here ;) f[in_]=ConstantArray[Mean[#], 2] - Boole[#[[1]] < Pi]& /@ Partition[in,2] // Flatten f[{1, 2, 5, 6, 8, 9}] --> {1/2, 1/2, 11/2, 11/2, 17/2, 17/2} Peter