HP Forums
Comma separated values in vector? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Comma separated values in vector? (/thread-2468.html)



Comma separated values in vector? - DrD - 11-21-2014 11:05 PM

Is there a setting for placing comma's between vector elements?

User Guide: grad(2*x^2*y-x*z^3,[x,y,z]) gives [2*2*x*y-z^3,2*x^2,-x*3*z^2]
(shows comma's separating x,y,z)

Example: grad(3*x^3-3*x*y^2-z,{x,y,z}) ---> [9*x^2-3*y^2 -6*x*y -1]
(No comma's separating x,y,z)

Which is very hard to read.
-Dale-


RE: Comma separated values in vector? - Joe Horn - 11-22-2014 05:43 AM

(11-21-2014 11:05 PM)DrD Wrote:  Is there a setting for placing comma's between vector elements?

Yes: turn off Textbook Display mode (Home Settings, page 2).

Alternative #1: Use STRING(vector) to convert it into a string with embedded commas.

Alternative #2: Turn on Algebraic Entry mode (Home Settings, page 1), and copy the vector to the edit line.