×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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

Program to tick solution in graph

Program to tick solution in graph

Program to tick solution in graph

(OP)
Hi

I would like mark solution on graph for some function, for example I have 6 function and I want to hatch the common area:
f1(x)>=...
f2(x)>=...
f3(x)>=...
f4(x)>=...
f5(x)>=...
f6(x)<=...
Have you any idea how can I do that?

RE: Program to tick solution in graph

(OP)
Thank for reply, I found file "Creating Amazing Images with Mathcad" and I check whole file there is a lot of amazing function but unfortunately I didn't find solution my problem. Have somebody idea how to do it?

I'm sorry for my english, it isn't my first language

RE: Program to tick solution in graph

Quote (marrcing9)

I'm sorry for my english, it isn't my first language
Neither it_s mine winky smile
It would have been a good idea to state, which flavor of the program you use - that is either real Mathcad or just Prime.

The author of those outstanding "Amazing Images..", Prof. Byrge Birkeland, has also posted routines to hatch the area between to curves.
For MC15: http://communities.ptc.com/docs/DOC-3380
For Prime:http://communities.ptc.com/docs/DOC-3495

In the good old Mathsoft times there used to be a good repository of utility files but PTC has broken that as they did with so many other things. Sometimes we are lucky to find those old goodies using the wayback machine:
http://web.archive.org/web/20070730162532/http://www.mathcad.com/support/item/examples/02oct/user.mcd

You may find other routines in the PTC forum as this subject comes up ever so often and was discussed a couple of times. But the best you could find are routines to hatch the area between just two curves. For your problem you will have to deal with the various points of intersection yourself and keep track between which two curves you have to hatch for which interval and also dealing with the case that there is no common area at all.

RE: Program to tick solution in graph

(OP)
I use MC15. I know it could be case without common area but it isn't a problem I always could something write, for example: "No common Area, change variable A".
Finding common area between two curves is simpler because we know that one of them is at up and another is at down, with 6 functions is bigger problem.

I'm sorry for my english, it isn't my first language

RE: Program to tick solution in graph

The first thing you will have to do is to define exactly what you mean by "common" area! This isn't that trivial as it may look. It would utilize either vector definitions or boolean expressions.
Take a simple triangle ABC for instance. AB=c being horizontal, A to the left, C being above c. You may think its clear where the "inside" or common area is but you would have to define it. In our case you could create an oriented path ABC, counterclockwise and define the the "inner side" is the direction of the normal vector which we get when we turn the tangent vector counter clockwise, considering the oriented path ABC.
You may also define an "inside" orientation for each function: Inside is to the right (clockwise normal vector) of a and b (if we go from left to right) and to the left of c. But then, why the change in orientation of c? This will be different if the position of the triangle changes.
Another approach can be using boolean expressions which comes especially natural for a task like linear optimization.
Once you have defined what common area means it should not be that difficult to write a routine which determines and hatches it automatically, but I guess you will have to deal with a lot of special cases.
Anyway, concerning the hatching, the provided links should get you up an running.
Good luck and Merry Christmas!

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


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
Design for Additive Manufacturing (DfAM)
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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close