The following warnings occurred:
Warning [2] Undefined array key 252189 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 252192 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 252335 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 252337 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 252361 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 252445 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 252447 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 252447 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 252445 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





HP Prime - Saved formulas, expressions



#2

Hello,

I am trying to find decent way(s) to save/define formulas or expressions in PRIME that I can use over and over, like

POLY(A,B,C,X)= A*X^2 + B*X + C

then use this in APPS Symb view, symbolic/numerical solvers, algebra operations etc...

Is this as simple as SHIFT DEFINE and naming, typing the formula/expression and checking/unchecking the proper variables?

Best,
Carl


#3

Two things with Shift+Define:

1. The arguments come in the order where the variable is first seen. Plan your function carefully.


Using your example, if I use the Define feature to define POLY as
X^2 * A + X * B + C


Then POLY uses the following arguments in this order: POLY(X, A, B, C)


2. Functions made with Define take numerical arguments only. The only exception I found was to use this in the Solver.


Using the POLY example:

In the Solver App set E1 as POLY(X,A,B,C) = R. (R is for the result, leave this out if you want to solve POLY(X,A,B,C)=0). You will be able to solve for only one of the variables at a time.

Hope this helps.


#4

Thank you for your explanation Eddie.

Unfortunately, it still feels like a minefield to me trying to save formulas/expressions on the PRIME and then trying to use (copy or call) in the APPS, Math or CAS menus. At best. I go to the APP, key in the expression get some results and it ends there. Trying to go elsewhere causes errors.

I think Paul Fox had a recent post asking for tutorials. I agree as the users guide seems okay to INTRODUCE all the functions/apps, but tutorials involving more than one APP, CAS or Math function would be helpful.

Ill try to teach myself more but its frustrating.


#5

Quote:

Ill try to teach myself more but its frustrating.


Two questions after spending time in the UG and the Emulator:

1. How can I delete or set variables back to zero? Just the PURGE() command? Any other ways?

2. Why does the x,t,theta,n key sometimes show an x, a or b when pressed? Should this be used ONLY for APPS?

Carl


#6

1. To delete a variable created in home, select it in the vars menu and press BKSP. No programmatic way to do it. There is a purge, but that really only applies in the CAS.

2. That key depends on what application is active. Default is x, but if you are in sequence it will be n, or parametric t, polar theta and your first variable of the first equation in solve.

TW

Edited: 6 Oct 2013, 9:37 p.m.


#7

Tim - thank you.

I'm starting to see now the different uses for User VARIABLES and User FUNCTIONS.

Question - it does seem easier typing in the FUNCTIONS via the Emulator. I assume there is no way to SEND these to my HHC directly to or via the Connectivity kit?

#8

Quote:
Using your example, if I use the Define feature to define POLY as
X^2 * A + X * B + C

Then POLY uses the following arguments in this order: POLY(X, A, B, C)

2. Functions made with Define take numerical arguments only. The only exception I found was to use this in the Solver.


Eddie - Thank you!

Not only does this work in Solver APP, it seems that it also works in the Function APP (courtesy of Tim and others). Although you need to use two APPS, you get solver and graphing together. Cool.

Edited: 7 Oct 2013, 8:26 p.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP-Prime: issues in entering expressions fhub 30 7,648 10-02-2013, 12:32 AM
Last Post: Tim Wessman
  Product Series and Limit Expressions on the 50G Matt Agajanian 13 3,587 09-03-2013, 02:02 PM
Last Post: Simone Cerica
  Lost formulas David Goldstein 5 1,932 05-08-2013, 03:39 AM
Last Post: Katie Wasserman
  OT: Google evaluates mathematic expressions (with a twist) DavidShenk 4 1,985 02-13-2013, 09:05 AM
Last Post: Juan J
  Formulae or formulas, that's the question (poll) Walter B 56 12,892 06-16-2012, 11:16 AM
Last Post: William L. Drylie
  Back with my DEG<->DMS formulas ! PGILLET 5 1,707 05-03-2012, 07:44 PM
Last Post: Bart (UK)
  OT: The Math That Saved Apollo 13 Just Sold for $388,375 Egan Ford 4 1,542 12-01-2011, 08:02 PM
Last Post: Egan Ford
  Immediate algebraic expressions in RPL+ Oliver Unter Ecker 8 2,359 11-19-2011, 04:29 AM
Last Post: Oliver Unter Ecker
  Parsing Object Oriented Expressions with RPN Howard Owen 4 1,372 10-06-2010, 02:03 AM
Last Post: Namir
  Help: how to get the hp-50g to work on expressions. Luca 2 1,062 08-17-2009, 12:39 PM
Last Post: Luca

Forum Jump: