Group Abstract Group Abstract

Message Boards Message Boards

1
|
4.3K Views
|
2 Replies
|
6 Total Likes
View groups...
Share
Share this post:

What uses are there for Inactive?

Posted 12 years ago

I'm curious about how people use Inactive, especially in cases when HoldForm can't replace it. Some were quite enthusiastic about its introduction.

How do you use this new feature?

POSTED BY: Szabolcs Horvát
2 Replies

Are the main uses you see educational, mostly related to step-by-step evaluation or display of unevaluated forms?

Are there other uses, e.g. code generation that was more difficult with Hold? One difficulty I see with trying to use it for code generation is that when the head of an expression is compound, its body can't be held:

Inactive[head][ (* this can't be held *) ]

Perhaps the idea is to inactivate every single head in the expression.


I am aware that NDSolve has direct support for Inactive, described here. Does Inactive tie into other functionality anywhere else?

POSTED BY: Szabolcs Horvát
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard