Post Reply 
MAKELIST with a condition?
02-17-2015, 06:25 PM
Post: #4
RE: MAKELIST with a condition?
(02-17-2015 04:16 PM)DrD Wrote:  Just as an example, suppose a list of the positive elements are desired from this composition:

MAKELIST(X,X,-pi,pi,p1/6);

Is there a syntax to embed something like "IF X > 0 THEN X" as a valid EXPRESSION within the MAKELIST structure? The intent is to include the conditional expression WITHIN the MAKELIST command, not pre or post processing.

IF not, would this notion be worthy of future development for MAKELIST?

-Dale-

Not sure to understand your idea.What about :
MAKELIST(IFTE(X<5,X,X²),X,1,10,1)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
MAKELIST with a condition? - DrD - 02-17-2015, 04:16 PM
RE: MAKELIST with a condition? - Han - 02-17-2015, 04:35 PM
RE: MAKELIST with a condition? - DrD - 02-17-2015, 04:55 PM
RE: MAKELIST with a condition? - Gilles - 02-17-2015 06:25 PM
RE: MAKELIST with a condition? - Han - 02-17-2015, 06:30 PM
RE: MAKELIST with a condition? - Gilles - 02-17-2015, 06:34 PM



User(s) browsing this thread: 1 Guest(s)