# HP Forums

Full Version: Bug with direct access cmds
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, Users and Developer group of the famous hp-prime calculator
Sorry for my technical english.

=> synonyms of sto ► and convert cmds

0:
5 => aa [ENTER] returns a:=5 // ok

1:
sum(k^2,k,1,n) [ENTER] returns (2*(n+1)^3-3*(n+1)^2+n+1)/6

2:
sum(k^2,k,1,n) => * [ENTER] returns n*(n+1)*(2*n+1)/6
sum(k^2,k,1,n) ► * [ENTER] returns n*(n+1)*(2*n+1)/6

3:

factor(x^4-1) [ENTER] returns (x-1)*(x+1)*(x^2+1)

Now with shortcut cmd =>*

x^4-1 => * [ENTER] returns
input: POLYFORM(x^4-1,'*' )
output: (x-1)*(x+1)*(x^2+1)

[up][up][copy]
x^4-1 ► * [ENTER] returns (x-1)*(x+1)*(x^2+1) // ok

4:
partfrac((x+1)^4) [ENTER] returns x^4+4*x^3+6*x^2+4*x+1

Now with shortcut cmd =>+

(x+1)^4 => + [ENTER] returns x^4+4*x^3+6*x^2+4*x+1
input: POLYFORM((x+1)^4,'+' )
output: x^4+4*x^3+6*x^2+4*x+1

[up][up][copy]
(x+1)^4 ► + [ENTER] // Problem
enter an * when executing, can be checked in the simulator Edit/copy then edit/paste
(x+1)^4 * ► + [ENTER] // Bug
returns "Error: Syntax Error"

with an extra parenthesis works well
( (x+1)^4 ) ► + [ENTER] returns x^4+4*x^3+6*x^2+4*x+1 // ok

5:

(X_,Y_:=[0,1,2,3],[1,-3,-2,0]),(P_:=lagrange(X_,Y_)) [ENTER]
returns
[0,1,2,3],[1,-3,-2,0],(((-2/3)*(x-2)+(5/2))*(x-1)-4)*x+1 // ok
P_:=lagrange(X_,Y_) => + [ENTER]
returns
[0,1,2,3],[1,-3,-2,0],(-4*x^3+27*x^2-47*x+6)/6
Reference URL's
• HP Forums: https://www.hpmuseum.org/forum/index.php
• :