mixed list

hawe shared this problem 5 years ago
Not a Problem

Once upon a time i could have mixed lists:


  1. h(t):=(1,2,3)+t*(2,1,2)

    h(t):=((2 * t) + 1, t + 2, (2 * t) + 3)


  2. {h(3)}

    {(7, 5, 9)}


  3. {"g",h(3)}

    {"g", ?}


Any Idea? Can not combine text and function result, real numbers und variables computes...

GGB5 + GGB6


hawe

--

Please remove unnesseary brackets in output-copy

Comments (7)

photo
1

I do not imagine the utility of this but try:

3. "g"

4. {$3,$2}

photo
1

This helps to state a bug ?-)

But there is a difference, look vor " quotation marks...

photo
1

Commands with "quotes" are processed using the Algebra View (for speed). Do you really need to mix text and non-text in a list?

photo
1

Hm,

I used mixed list to display e.g. a line term (hard to read)

h(t):=((2 * t) + 1, t + 2, (2 * t) + 3)

in a more convenient way to display seperated vectors of the term (more schoolbook like)


"h=",g(0),"+t", g(1)-g(0)


"h=",(1,2,3),"+t", (2,1,2)

hawe

photo
1

Why not


  1. { "h=","(1,2,3)","+t", "(2,1,2)" }

photo
1

It is static...

photo
1

For the next release I've added support for f(3) when f is a 3D line, that will fix this particular case. It would be also good to have it for 2D lines but there are some compatibility issues: 2D line is always considered a function so f(3) returns a number, not a vector.

© 2023 International GeoGebra Institute