[fricas-devel] Re: input bug?

2009-04-07 Thread Bill Page

Martin,

As you may or may not know the 'r' in your input below is supposed to
stand for radix. So '2r...' indicates an integer written in base 2
notation. 8r would be octal notation etc. This works in OpenAxiom:

wsp...@debian:~$ open-axiom -nox
GCL (GNU Common Lisp)  2.6.7 CLtL1Sep  1 2008 14:01:57
Source License: LGPL(gcl,gmp), GPL(unexec,bfd,xgcl)
Binary License:  GPL due to GPL'ed components: (XGCL READLINE BFD UNEXEC)
Modifications of this banner must retain notice of a compatible license
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.
Temporary directory for compiler files set to /tmp/
 OpenAxiom: The Open Scientific Computation Platform
 Version: OpenAxiom 1.3.0-2009-03-08
Built on Tuesday March 17, 2009 at 08:13:56
-
   Issue )copyright to view copyright notices.
   Issue )summary for a summary of useful system commands.
   Issue )quit to leave OpenAxiom and return to shell.
-

(1) - 2r101

   (1)  5
Type: PositiveInteger
(2) - 8r777

   (2)  511
Type: PositiveInteger

---

But this is apparently currently broken in FriCAS. I vaguely recall a
patch Gaby made to OpenAxiom some months ago which may have been the
correction to this problem.

Regards,
Bill Page.

On Tue, Apr 7, 2009 at 9:52 AM, Martin Rubey wrote:

 What's going on here?

 (1) - 2r

   (1)  2R0
                                                          Type: Variable(2R0)
 (2) - 3r

   (2)  3R0
                                                          Type: Variable(3R0)
 (3) - 3s

   Cannot find a definition or applicable library operation named 3
      with argument type(s)
                                 Variable(s)

      Perhaps you should use @ to indicate the required return type,
      or $ to specify which version of the function you need.


 Martin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
FriCAS - computer algebra system group.
To post to this group, send email to fricas-devel@googlegroups.com
To unsubscribe from this group, send email to 
fricas-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~--~~~~--~~--~--~---



[fricas-devel] Re: input bug?

2009-04-07 Thread Martin Rubey

Bill Page bill.p...@newsynthesis.org writes:

 Martin,
 
 As you may or may not know the 'r' in your input below is supposed to
 stand for radix. 

No, I didn't.

 So '2r...' indicates an integer written in base 2
 notation. 8r would be octal notation etc. This works in OpenAxiom:
 
 wsp...@debian:~$ open-axiom -nox
[...]
 (1) - 2r101
 
(1)  5

Oh dear, this looks terribly dangerous.  My 2r was a typo, I wanted
to type 2*r.  I just checked OpenAxiom, it gives 0 for 

2r*x

I'd vote for turning this feature off in FriCAS altogether (and
replace it by something less error prone)!

Martin


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
FriCAS - computer algebra system group.
To post to this group, send email to fricas-devel@googlegroups.com
To unsubscribe from this group, send email to 
fricas-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~--~~~~--~~--~--~---



[fricas-devel] Re: input bug?

2009-04-07 Thread Alfredo Portes

On Tue, Apr 7, 2009 at 12:44 PM, Martin Rubey
martin.ru...@math.uni-hannover.de wrote:

 Oh dear, this looks terribly dangerous.  My 2r was a typo, I wanted
 to type 2*r.  I just checked OpenAxiom, it gives 0 for

 2r*x

What result were you expecting? Just curious.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
FriCAS - computer algebra system group.
To post to this group, send email to fricas-devel@googlegroups.com
To unsubscribe from this group, send email to 
fricas-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~--~~~~--~~--~--~---



[fricas-devel] Re: input bug?

2009-04-07 Thread Ralf Hemmecke

http://www.aldor.org/docs/HTML/chap5.html#2

'2r' should give a syntax error if neither 0 or 1 is following.

Ralf

On 04/07/2009 06:55 PM, Martin Rubey wrote:
 Alfredo Portes doyenatc...@gmail.com writes:
 
 On Tue, Apr 7, 2009 at 12:44 PM, Martin Rubey
 martin.ru...@math.uni-hannover.de wrote:

 Oh dear, this looks terribly dangerous.  My 2r was a typo, I wanted
 to type 2*r.  I just checked OpenAxiom, it gives 0 for

 2r*x
 What result were you expecting? Just curious.
 
 I'd hope for an error.  r is a variable name I use often, and at
 times I miss the multiplication sign.
 
 Martin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
FriCAS - computer algebra system group.
To post to this group, send email to fricas-devel@googlegroups.com
To unsubscribe from this group, send email to 
fricas-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~--~~~~--~~--~--~---



[fricas-devel] Re: input bug?

2009-04-07 Thread Gabriel Dos Reis

Alfredo Portes doyenatc...@gmail.com writes:

| On Tue, Apr 7, 2009 at 12:44 PM, Martin Rubey
| martin.ru...@math.uni-hannover.de wrote:
| 
|  Oh dear, this looks terribly dangerous.  My 2r was a typo, I wanted
|  to type 2*r.  I just checked OpenAxiom, it gives 0 for
| 
|  2r*x
| 
| What result were you expecting? Just curious.

I think the scanner should have signaled a syntax error.  I'll fix
that tonight.  

Except that, I don't think integer literals expressed in radix
other than 10 are dangerous at all.


-- Gaby

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
FriCAS - computer algebra system group.
To post to this group, send email to fricas-devel@googlegroups.com
To unsubscribe from this group, send email to 
fricas-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~--~~~~--~~--~--~---