How to adjust the length of a line passing through a point?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to adjust the length of a line passing through a point?
Hello,
Default plot of the line passing through the point (1,1) in Mathcad Prime:
My desire:
Having a point, for example: (x, F(x)) = (1,1), I would like to be able to adjust the LENGTH of the line passing through that point (1,1), in order the length of the line to be smaller or larger as shown below. How could I do this?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Cornel wrote:
My desire:
Having a point, for example: (x, F(x)) = (1,1), I would like to be able to adjust the LENGTH of the line passing through that point (1,1), in order the length of the line to be smaller or larger as shown below. How could I do this?
Simply plot the line segment by providing the coordinates of the two end points:
Of course you also could provide a range for the abscissa values to limit the line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Or more elaborate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
But of course there are so many different ways to achieve the same effect. If you prefer you may also use complex numbers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What does "both" parameter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The parameter both, if set to non-zero, makes the line go to both sides of the point P.
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@LucMeekes wrote:
The parameter both, if set to non-zero, makes the line go to both sides of the point P.
Success!
Luc
Of course correct. And this also means that the total length of the line segment is twice the length provided by the "dist" argument in that case. If thats not desired the function must be slightly modified.
