Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Graphs not working with previously defined symbols

Graphs not working with previously defined symbols

Graphs not working with previously defined symbols

Specific problem:
I have a function w(s) = ...
When I try to graph the function using the variable 's', I get an error because the graph thinks s is a second and not a variable.
s:=s doesn't work as implied on other web pages.
How do I undefine s?

General problem:
The above doesn't seem to work for any previously defined symbol (x, t, L, etc).  
Is it possible to graph using a previously defined symbol as it's variable?


MathCAD 14.0

Related links:

RE: Graphs not working with previously defined symbols

That's the whole point, isn't it?  A variable is an unknown.  If you don't define it ahead of time, Mathcad will generate a single variable plot using the range of -5 to 5.

However, if a variable is already defined, then you need to make it into a range variable or vector to get a plot.

If you are otherwise not using units, you could turn off the units altogether.


FAQ731-376: Eng-Tips.com Forum Policies

RE: Graphs not working with previously defined symbols

Thanks for steering me toward ranges.  I made s an array:
s[i:= -50ft + i*2ft

w(s) now graphs, yay!

Although the above takes a some thought to set up right.  I'm wondering if there is an easier way?  It would be ideal if there were a way to undefine a unit.

I do need units, I don't want to disable them completely.


RE: Graphs not working with previously defined symbols

In my case, I do use units, and I just avoid reusing built-in units, because the consequence of redefining a common unit can be quite annoying.


FAQ731-376: Eng-Tips.com Forum Policies

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close