Complex Number Calculator for the console by Shawn Pringle

new topic     » topic index » view thread      » older message » newer message

I noticed Shawn's Complex Number Calculator program posted here: http://rapideuphoria.com/calculator.tar.xz

I am mostly clueless about how the program works, so forgive me if this suggestion is off the mark.

printf(1, "Welcome to the calculator program.  So far, real numbers and operators ", {}) 
-- change: for i = 1 to length(binary_operators)-1  to: 
for i = 1  to length(operators)-1 do 
    -- puts(1, binary_operators[i] & ", ") 
    puts(1, operators[i] & ", ") 
end for 
-- change: puts(1, "and " & binary_operators[$] & " are supported. \n") to: 
puts(1, "and " & operators[$] & " are supported. \n") 

resulting new prompt:
Welcome to the calculator program. So far, real numbers and operators (, /, *, -, +, and ) are supported.
>

original prompt:
Welcome to the calculator program. So far, real numbers and operators /, *, -, and + are supported.
>

Thanks to Shawn for making the program available to us.

Ken

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu