×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• 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.

# Creating a data table from a function defined in Mathcad

## Creating a data table from a function defined in Mathcad

(OP)
Ok so just a little background, I'm using Mathcad Prime 3.0 for my calculations. So lets say I have a function defined as f(x) in mathcad and I am able to graph it appropriately. Is it possible to have Mathcad produce a tables of values f(x) for a range of x from say 0 to 12, in increments of 0.1.

I know this has to be something fairly simple to do but I have looked online for a while and haven't found anything that would allow me to do this. Thanks for any help!

### RE: Creating a data table from a function defined in Mathcad

if you define x like x := 0,.1...12 and then f(x) = you will get a vector of the values that you want. If you also want more values of x available, you can define a separate range as above, say xx, and then f(xx) would give you that specific range without altering more results.

### RE: Creating a data table from a function defined in Mathcad

(OP)
Thanks a lot that's exactly what I need. Makes a lot of sense. Sorry for such a simple question just starting learning the basics of Mathcad. I appreciate the quick response.

### RE: Creating a data table from a function defined in Mathcad

Just be aware that an array variable is not exactly like a vector, i.e., you can't do transposes, etc.

An alternate approach is to use an indexed variable, which will behave like a vector:

i : 0;120
x[i : (i/10)

This will also allow you to do g[i : f(x[i) or f(x[i, y[j) type of problems

TTFN
FAQ731-376: Eng-Tips.com Forum Policies

Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers

Of course I can. I can do anything. I can do absolutely anything. I'm an expert!

#### 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.

#### Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a partâ€™s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!