GithubHelp home page GithubHelp logo

ti-planet / eval_expr Goto Github PK

View Code? Open in Web Editor NEW
16.0 7.0 1.0 3 KB

TI-Nspire CX II python library to evaluate TI-Basic expressions

License: The Unlicense

Python 100.00%
ti-nspire python ti-basic expression-evaluator

eval_expr's People

Contributors

adriweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dolfino

eval_expr's Issues

Error: Invalid number format

from eval_expr import*
from math import *
from eval_expr import eval_expr
eval_expr("sqrt(90)", True)

Gives error:

"C:\Users\sanje\AppData\Roaming\Texas Instruments\TI-Nspire CX CAS Premium Teacher Software\PyExtract\eval_expr.py", line 38, in  eval_expr
TypeError: Invalid number format

last version of TI Os

In the last version I get the following:

import ti_st
print(help(ti_st))

object <module 'ti_st'> is of type module
name -- ti_st
readST --
readSTNum --
readSTLst --
writeST --
evalFunc --
writeSTLst --
getKey --
wait --
get_platform --
disp_clr --
getmouse --
get_time_ms --

So there are also readSTNum, readSTLst and writeSTLst. I do not know so much of Python and the TI-NSpire to do anything with that functions. But maybe you? Also I do not know how to list the parameters of the undocumented functions. Is there a way?
By the way: Great work!

Invalid number format

I keep getting an "Invalid number format" exception on line 38 when calling either function. I have everything set up correctly, and it works on the Student Software, but not on my Nspire. I'm not sure what's going wrong.

does not work any more

I tested the functions today, but they do not work anymore. ;-(

Checked it with the original TI Student Software and two calculators, a CX II-T and a CX II-T CAS.
I used the simple expression
eval_expr("sqrt(90)",True) - that one from your example. (Tested False or no second param also)
On the CAS I get: line 38, in eval_expr
TypeError: Invalid number format
That is the line: res = readST("tmppy_") # retrieve stored value

On the non-CAS I get: py", line 37, in eval_expr
TypeError: Variable storage failed
And thats the line: writeST("tmppy_", 'strsub(string('+str(expr)+'),"/","$%$")') # eval and store

Calculator-Software: 5.3.0.564 on both calculators.

Any chance to fix the problem, or has evil TI blocked that method?

Tried on another Laptop

Still the same issue
Tried on another laptop. I am using 6.0.3.374
Can you kindly send me your file, so I can compare.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.