Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Local variable in function argument' topicStudent Support Forum > General > Archives > "Local variable in function argument"

Next Comment >Help | Reply To Topic
Author Comment/Response
04/19/12 3:26pm


I am trying to create a user-defined function that mimics the behavior of functions like Plot and Solve when dealing with the independent variable. For example, when I type Plot[Cos[x],{x,0,Pi}], the x's change color and x is treated as a local variable. This allows Mathematica to produce the correct plot even if the user has already assigned a value to x.

Is there any way to do this with a user-defined function? I've searched through the Mathematica help files but I can't find anything about this.

Thanks in advance for your time and help!

URL: ,

Subject (listing for 'Local variable in function argument')
Author Date Posted
Local variable in function argument Anthony 04/19/12 3:26pm
Re: Local variable in function argument Anthony 04/23/12 11:29am
Next Comment >Help | Reply To Topic