ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Subject: Re: Clipping again
Date: Sun, 25 Jun 2006 12:58:22 -0700	[thread overview]
Message-ID: <00126185-2A78-4687-9F91-DFE6AFB92A73@cox.net> (raw)
In-Reply-To: <6faad9f00606251237n70a922edi3b8e4e329446057@mail.gmail.com>

Mojca,

Good question of course.

However, I am using this for intermediate algebra students so the  
graphs will be lines, absolute value, quadratics, polynomials,  
rational functions, radical functions, exponential and logarithmic  
functions.

In each case, I would adjust the window to see all important behavior  
of the function, extrema, etc. So, for example, if I needed to draw  
y=12-x^2, I would not clip this to the boundary (-10,-10)--(10,-10)-- 
(10,10)--(-10,10)--cycle, because that would chop off the top of the  
parabola, and if I added arrows, it would look like I had two  
branches. Rather, I might clip y=12-x^2 to the boundary (-10,-20)-- 
(10,-20)--(10,20)--(-10,20)--cycle in order to see the "turning  
point" of the parabola.

That is, I would choose a boundary that would present arrow heads at  
each end of the curve. In the case of rational functions, I would  
clip each branch separately.

I hope this answers the question.

Thanks.

On Jun 25, 2006, at 12:37 PM, Mojca Miklavec wrote:

> On 6/25/06, David Arnold wrote:
>> Unfortunately, even though this works, mathematicians really want
>> arrows at each end of the graph. Easy enough to do with drawdblarrow
>> P withcolor blue, but the arrows then get clipped. What I really need
>> is to adapt the code below so that my function is clipped to the
>> boundary box, but then redrawn with arrows at each end of it. If
>> anyone can adjust my code to do that, it would be much appreciated,
>> and it would break down a barrier I've faced for years with metapost
>> coding.
>
> Just for clarification: What would you do with a "mexican hat"
> (x^4-4*x^2+4, y between 0 and 3) it if would cut the boundary 4 times?
> Use 4 arrows or just the two at the end?
>
> Mojca
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2006-06-25 19:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-25 19:19 David Arnold
2006-06-25 19:37 ` Mojca Miklavec
2006-06-25 19:58   ` David Arnold [this message]
2006-06-25 20:14     ` Mojca Miklavec
2006-06-26  0:51       ` David Arnold
2006-06-25 21:32 ` Hans Hagen
2006-06-26  9:39 ` Mojca Miklavec
2006-06-26 15:01   ` Hans Hagen
2006-06-26 19:51   ` David Arnold
2006-06-26 20:35     ` Mojca Miklavec
2006-06-26 22:30       ` Hans Hagen
2006-06-26 22:44         ` Mojca Miklavec
2006-06-26 23:04           ` Hans Hagen
2006-06-27  2:27             ` David Arnold
2006-06-27  9:01               ` Mojca Miklavec
2006-06-27  9:32                 ` Hans Hagen
2006-06-27  1:04       ` David Arnold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=00126185-2A78-4687-9F91-DFE6AFB92A73@cox.net \
    --to=dwarnold45@cox.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).