Search the web
Sign In
New User? Sign Up
wcalc · Wcalc Users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Binary OR vs Absolute Value   Message List  
Reply | Forward Message #32 of 114 |
Hello all,

I've been fixing bugs in Wcalc almost exclusively the past few days.
Managed to track down some pretty long-standing bugs (e.g. sometimes the
parser doesn't reset itself after an error right away), and fix them.
Now I've come to a bit of a decision point.

There's a conflict between binary or and absolute value. I originally
wanted |-4| to be 4, but by the same token, I want to be able to
calculate 12|4. Does anyone on this list have any particular opinions on
this?

Some options:

+ banish |-4|, and replace it with either [-4], abs(-4), or both
Pro: simple, C-like, fixes some abiguity
Con: brackets mean we can't use them for matrixes in the future, and
abs() is not exactly intuitive
+ banish 12|4, and replace it with some other symbol
Pro: preserves commonsense absolute value stuff
Con: commonsense absolute value stuff is inherently ambiguous (what
is |-4|-3|-2| ? is it |-4| * -3 * |-2| or is it
| -4 * |-3| * -2 |?), and I can't think of an easy binary-or
operator.

Any suggestions/opinions? (I have a tendency to go for #1)

~Kyle
--
UNIX was not designed to stop you from doing stupid thinkgs, because that would
also stop you from doing clever things.
-- Doug Gwyn


Wed Aug 27, 2003 3:17 am

m3m0ryh0l3
Offline Offline
Send Email Send Email

Attachment
attachment
Type:
application/pgp-signature
Forward
Message #32 of 114 |
Expand Messages Author Sort by Date

Hello all, I've been fixing bugs in Wcalc almost exclusively the past few days. Managed to track down some pretty long-standing bugs (e.g. sometimes the parser...
Kyle Wheeler
m3m0ryh0l3
Offline Send Email
Aug 27, 2003
3:17 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help