[MWForum]Bobbing Buttons

Jeff Knope mwforum@lists.mathcats.com
Fri, 10 Jan 2003 16:08:25 -0800


Hi Daniel -

You're absolutely right on the reductions.  I'm still at the stage of just
following my nose, and when it works moving on.

This map thing you offered is intriguing.  I think I understand the concept.
But my Help lists don't show "map" as a primitive.  I got my MWPro direct
from LCSI less than a year ago.  Is there a more recent version?   When I
copied your line into the Command Center and ran it, I got "I don't know how
to map."  Have you written a mapping procedure?  It shouldn't be too hard to
do.

Be sure to check out the feedback from Jacques Mathil.  He makes my whole
strategy totally moot!

Regards,
-Jeff

----- Original Message -----
From: "Daniel Ajoy" <dajoy@openworldlearning.org>
To: <Mwforum@lists.mathcats.com>
Sent: Friday, January 10, 2003 11:36 AM
Subject: Re: [MWForum]Bobbing Buttons


> On 8 Jan 2003 at 21:52, Jeff Knope wrote:
>
> > It'd be silly to just talk about it, when it's so easy to show it in
action.
> > So I've framed it as a explanatory project, with working examples.
There
> > are fairly explicit explanations.
> >
> > Let me know if anything is confusing.  I hope you enjoy...
> >
>
> I did enjoy it!
>
> You say:
>
> make "place (int abs (minus 318 + (first mousepos)) / 60) + 1
>
> But:
>
> abs (minus 318 + (first mousepos))
>
> is:
>
> abs (minus [something])
>
> and that is just:
>
> [something]
>
> So:
>
> make "place (int abs (minus 318 + (first mousepos)) / 60) + 1
>
> is:
>
> make "place (int (318 + first mousepos) / 60) + 1
>
> and also:
>
> show map [(int (318 + ?) / 60) + 1] [-316 -263 -254 -201 -191 -141]
> [1 1 2 2 3 3]
>
> show map [int (378 + ?) / 60] [-316 -263 -254 -201 -191 -141]
> [1 1 2 2 3 3]
>
> so:
>
> make "place (int (318 + first mousepos) / 60) + 1
>
> is:
>
> make "place int (378 + first mousepos) / 60
>
> :)
> Daniel
> OpenWorld Learning
>
> _______________________________________________
> MWForum mailing list
> MWForum@lists.mathcats.com
> http://lists.mathcats.com/mailman/listinfo/mwforum
>
>