The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: apply rule to Partition
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 22
Registered: 5/30/12
apply rule to Partition
Posted: Sep 20, 2013 7:06 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I want to use rule to simplify my code. A piece of my code use Partition
and I tried something like:

Partition[Range[10], m] /. m -> 2

It give me error message. My real code is in fact more complicated and this
way failed to give me an output. How could I make it work?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.