Name Description Size Visibility
Anykeys shows which keys you press and you can press several at the same time. The last key pressed is shown in the lower left corner. In the emulators on the NumWorks site in Python shell only a few buttons on your emulator’s physical keyboard work: e.g. Tab (Toolbox), Enter (EXE), Shift, Backspace, Esc (Back), Alt+x (exp), Alt+v (var), Alt+e (EE), Alt+r (sqrt), Alt+p (pi), Alt+Shift+2 (**2), Alt+l (ln), Alt+o (log), ^ (power), Alt+s (sin), Alt+c (cos), Alt+t (tan), ,, ., 0-9, +, -, *, /, and the arrow keys, but of these, in ion, only Tab, Enter, Shift, Alt (Alpha), Backspace, ., 0-9, +, -, *, /, and the arrow keys work. The Back/Escape key interrupts the program. None of the JavaScript emulator’s screen keys work with Anykeys. In the emulator for iPhone only the OK button works. It works well with the real calculator, but if you press many keys some non pressed keys might be added or removed; probably due to the keyboard matrix circuit. On my UK keyboard in Linux these key combinations also work in the Python shell: AltGr+a (æ), AltGr+d (ð), AltGr+i (→), AltGr+o (ø), AltGr+p (þ), AltGr+q (@), AltGr+s (ß), AltGr+Shift+f (ª), AltGr+Shift+m (º), AltGr+Shift+q (Ω), AltGr+Shift+0 (°), AltGr+Shift+9 (±). All other UK keyboard keys work normally except: ¬, £, ^ (**),¹, ², ³, €, ½, ¾, ¡, ⅛, ¼, ⅜, ⅝, ⅞, ™, ¿. Ideas for future improvements of ion in the NumWorks simulator using US/UK keyboard: , (comma) could be the , key. [ and ] could act as ( (leftparenthesis) ) (rightparenthesis) in ion. The Alt codes in Python shell could changed to direct key in ion, i.e. t could be tan, q could be x^2, i or j could be i, w could be x^y. ` or n could be the x,n,t key. = could be the OK key. ’ could be the Ans key. ; or v could be the var key in ion. It is now Alt+v in Python shell, but this doesn’t work in ion since Alt is Alpha. \ could be EE i.e. ·10^x.
1010 Bytes Public
Aritm is a mental calculation training game for people who want to calculate manually. It teaches completely all the necessary tables for addition, subtraction, multiplication, division, and nothing unnecessary. It is completely tested by an automatic testing system on GitHub. Absolutely no warranty. Free Open Source Software (FOSS) with license GPLv3+.
7.15 KB Public
Buffon’s needle problem to estimate pi from “CE Python Turtle Getting Started” by Texas Instruments for TI-84 Plus CE modified to run on NumWorks.
2.43 KB Public
This game is a typing contest where you need to type the shown number (hold down the key). The game is Computer Nightmare from Usborne Creepy Computer Games (1983) by Jenny Tyler & Chris Oxlade (ed). Free pdf:s are on https://usborne.com/row/books/computer-and-coding-books. The ZX81 BASIC original was typed in by XavSnap on https://www.sinclairzxworld.com/viewtopic.php?f=4&t=1809. Converted to MicroPython for NumWorks calculator and simulator by mobluse/MOB-i-L. The converted program is close to ZX81 BASIC and not optimized or pythonic Python.
1.07 KB Public
Beräknar volym och densitet för en cylinder, givet massan, diametern och höjden.
255 Bytes Public
“Ahl’s Simple Benchmark” from the magazine Creative Computing. The last result is the average of the earlier 10. Before that are 10 runs, because it speeds up when you run it a few times. I got accuracy 6.821210263296962e-13, random 12.58937371239872, time 00:00:00.92350 on my Numworks N0110 version 21.0.0. See https://en.wikipedia.org/wiki/Creative_Computing_Benchmark.
712 Bytes Public
Shows dir of all modules one page at a time.
857 Bytes Public
Dirluxe shows dir() of a module or a type on the graphics screen. This is helpful during program development to show each function in the modules. You can use the toolbox to type an import module and you don’t have to remove “import ”. Examples of supported modules: builtins, math, matplotlib.pyplot, and ion. Default is all i.e. display all modules - press OK or EXE to advance. Press shift +OK or shift+EXE to repeat current module from top. Hold shift to pause scrolling. You can also input a type e.g. {}, [], (), "", 1, 1.0, 1j, and {1}. You can use run(), run(""), and run("math") etc. in the shell.
1.69 KB Public
A paint program. Press the arrow keys to move the painting cursor. Hold down SHIFT to paint faster. Press EXE/Enter to invert the screen. Press BACK/Esc key twice to quit.
609 Bytes Public
Demonstrates the bug on https://github.com/numworks/epsilon/issues/1893 After i=5112 here and 5114 in actual device it gives “MemoryError: memory allocation failed, allocating 5120 bytes”.
83 Bytes Public
Multiplikationsfrågesport
288 Bytes Public
Multiplication Quiz
410 Bytes Public
149 Bytes Public
131 Bytes Public
OLPyBASIC Python with line numbers (Ordered List Python BASIC (Beginners’ All-purpose Symbolic Instruction Code)) is a new programming language with goto. Syntax and features will change without prior notice. There are numbers before each line and the code runs in order, but execution can jump using goto or gosub with return. For each numbered line it uses Python’s exec() function. That means it’s compatible with Python3 or MicroPython in each logical line. OLPyBASIC has the advantage that you can have tutorials where you add lines to the program. It will also be easy to implement single stepping and continue after stop. Another advantage is that you can run spaghetti code in Python. This means that you can easily convert old BASIC programs to run in a modern programming language that normally lacks goto. This buys you time while you try to figure out how to remove the gotos, or leave them in, if your customer accepts that. Gosubs are easy to replace with functions. Example input (no need to input comments after #): from olpybasic import * P('10 print("OLPyBASIC")') # P is short for put. run() # Run i.e. start program. P('20 print("uPython")') # If difficult to enter single quote, try P(input()) run() P('30 x=30') P('40 print(x)') run() P('50 x+=1') P('60 if x<=40:goto(40)') run() PM() # PM is short for paste mode 70 stop() 90 print(11*x) 99 ret() 45 gosub(90) # Enter empty line to quit paste mode. run() L() # L is short for list. d(50) # D is short for delete. L() P('50 x+=2') L() tron() # trace on run() troff() # trace off run() Please create issues on GitHub if you have bug reports, suggestions for e.g. code improvements (I’m a Python/MicroPython beginner), or feature requests. This should be very light weight, but also comfortable to use. https://github.com/mobluse/olpybasic Planned changes: for loops added?
2.45 KB Public
The script shows a planet orbit about the origin, where the Sun is. The initial velocity v0=1.0 results in a circular orbit. Units are not SI units. Press Back/Esc to enter a new v0. The output, comments, and function names are in Swedish. Skriptet visar en planetbana runt origo, där solen är. Ursprungshastigheten v0=1.0 ger en cirkulär bana. Enheterna är inte SI-enheter. Tryck på Back/Esc för att mata in ett nytt v0. Utskrifterna, kommentarerna och funktionsnamnen är på svenska.
1.08 KB Public
Polynomial long division
1.63 KB Public
PrintTest shows all characters using ordinary print() in the module builtins. Press OK or EXE after each screen to see the next. You can enter a high “byte” for the Unicode. There are characters on e.g. 0x00, 0x1D, 0x22, 0x1D4.
531 Bytes Public
Rainbow Spiral draws a spiral using the turtle library. First it asks for a closed caption that is printed on the picture. Press Esc/BACK or OK when the drawing is finished. You are dropped into the Python shell where you can rerun it using run(), and then the old caption is default. This program is based on an example from https://edublocks.org with the same name.
756 Bytes Public
RPN calculator based on https://my.numworks.com/python/garycmartin/rpn . Use ? to show words. It allows comma to be used as an alternative to space. It also allows words to be followed by parenthesis: e.g. “pi,cos()” is -1. Some words were changed to words that are easier to enter using the Numworks keyboard.
2.48 KB Public
Type text with delay between letters.
258 Bytes Public
This program sums the times in the list with end times (positive) and start times (negative) for work days in a week. The times are given in the sexagesimal format h.mmss i.e. 14:50:00 is 14.5000 and -07:45:06.18 is -7.450618. The result is also in sexagesimal. It could be used to compute working hours for jobs with flexible hours per day. NO WARRANTY.
514 Bytes Public
Test program in line that should be copied and pasted in Python shell after executing OLPyBASIC. https://my.numworks.com/python/mobluse/olpybasic https://github.com/mobluse/olpybasic
291 Bytes Public
TextTest shows all characters using the module kandinsky.
632 Bytes Public

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.