The Museum of HP Calculators

HP Forum Archive 19

[ Return to Index | Top of Index ]

uBASIC
Message #1 Posted by Thomas Chrapkiewicz on 25 Oct 2009, 9:47 p.m.

Many of you may be aware, but just in case:

uBASIC is a most interesting / capable 'dialect' of BASIC which supports precision up to 2600 digits, rational and complex datatypes, list handling capabilities...

It is an older DOS era program, runs quite quickly and consequently very small.

http://archives.math.utk.edu/software/msdos/number.theory/ubasic/.html

TomC

      
Re: uBASIC
Message #2 Posted by hugh steers on 26 Oct 2009, 11:59 a.m.,
in response to message #1 by Thomas Chrapkiewicz

it's a pity it's not in C. there are bits of 16bit assembler in there too. was a source code ever released?

            
Re: uBASIC
Message #3 Posted by marais on 26 Oct 2009, 5:22 p.m.,
in response to message #2 by hugh steers

If uBasic sounds interesting to you, you may want to have a look at the old Tiny Basic

http://en.wikipedia.org/wiki/Li-Chen_Wang

which easily portable on almost any platform. I remember doing a 68k port myself back in the 90s.

marais

                  
Re: uBASIC
Message #4 Posted by Patrice on 26 Oct 2009, 9:10 p.m.,
in response to message #3 by marais

What is perticular with UBasic is the native high precision numbers.

you can write a factorization program and provide an input in the form of 2^300-1 and expect to obtain the right factors.

You can display the factorial of 200 to the last digit.

and so on without having to deal with memory management.

      
Re: uBASIC
Message #5 Posted by Namir on 26 Oct 2009, 10:28 p.m.,
in response to message #1 by Thomas Chrapkiewicz

There are many BASIC implementations that have surfaced then AND now. Most of them are freeware.

Namir


[ Return to Index | Top of Index ]

Go back to the main exhibit hall