Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.7K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Evaluate an expression inside Module[]

Posted 5 years ago
POSTED BY: Ehud Behar
3 Replies

You can also use Block:

f = 2 n + t;
Block[{n = 1, t = 5}, f]

or Replace:

f /. {n -> 1, t -> 5}

or Simplify:

Simplify[f, n == 1 && t == 5]
POSTED BY: Gianluca Gorni
Posted 5 years ago
POSTED BY: Rohit Namjoshi
Posted 5 years ago

With is what I was looking for.

Thanks a lot!

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