texas-instruments
TI83+ evaluate expression program
I would like to build a program in a TI-83+ that will prompt for the variables x, y, and z, and then prompt for an expression on the terms x, y, and z. Is it possible to prompt for that expression and then evaluate it? If so, how?
TI-Basic has an expr( command that lets you evaluate strings as expressions. There is some information about the command here: http://tibasicdev.wikidot.com/expr By using the expr( command along with the store command (the arrow key), your program should be fairly straight forward to write.
TI-Basic provides you with a set of variables referred to as Y-VARS. Any string can be stored to a Y-VARS variable, after witch, any time the variable is used it will be evaluated as an expression (as if you called expr on the original string). the Y-VARS menu is found by pressing VARS followed by the right arrow key. One example of a Y-VARS variable is Y1, found under the FUNCTION sub-menu of the Y-VARS menu. Your particular situation could be resolved using Y-VARS like this: Prompt Y1,X,Y,Z Disp Y1 A sample run of the program could look like this: prgmTEST Y1=?"Y(X+Z X=?2 Y=?3 Z=?1 9 Done In this case, the expresion "Y(X+Z" has been evaluated as 3(2+1 and the result was found to be 9.
Related Links
Texas Instruments Transferring Program
How to interact with an OpenThread device?
how do i use autosar program on tiva EK-TM4c123GXL (ARM cortex M4)?
CCS/DRA755: DSS jython connection timesout whereas CCS manually does run successfully
CCS: MPU6050 Sensorlib
configure osxmotion library and license manager in Canon Juma(STM32F401)
What is the fastest infinite loop in TI-84+ Basic?
serialEvent1 on cc3200 energia
Strange behavior with Sys/Bios mailbox objects
TI CC3200: How to get access point list(Wifi Direct)
Storing values to a list stored in a string
Connecting a Texas Instruments TI-84 Plus CE to an Ubuntu computer
Description of function i.e sl_Start(0, 0, 0) used for cc3200 launchpad
How do I detect if an installation of Code-Composer-Studio is licensed?
TI83+ evaluate expression program