utoh / pygmy64

Frank Sergeant's Pygmy Forth for Desktops (anywhere Python runs)

Home Page:http://pygmy.utoh.org/pygmy64.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

math module import question

eekee opened this issue · comments

I'm preparing some extra math functions to make a pull request. Currently, SQRT has an import statement within itself, see below. Shall I keep it like that, or shall I add math to the import statement in the kernel?

CODE SQRT    import math; dpush(math.sqrt(dpop())) END-CODE

I think adding the import math statement to the kernel would be fine.