Disappearing Table

m_flashman shared this problem 4 years ago
Not a Problem

In this figure https://www.geogebra.org/m/WFxG4fUb for visualizing estimates for the definite integral of P(x) with various sums, the figure works well for all these changes: a, b, Euler/Riemann slider, and choice of point slider.

However, when the slider for N is moved, the table, TableT, disappears and has no value even though it remains defined in the algebra as a Text object and all of its components are still defined and working as lists.

TableText(Transpose({Join({{"c_k"}, x'_k}), Join({{"P(c_k)"}, fx_k}), Join({{"P(c_k)Δx"}, fΔx_k})}), "|_cc")

This does not seem to be a problem when a table is defined using spread sheet data. Is there some problem with the use of lists in my definition that is causing the problem?

Comments (3)

photo
1

Transpose() isn't designed for mixed text/number matrices so just use the "v" parameter to do it in TableT:

TableText({Join({{"c_k"}, x'_k}), Join({{"P(c_k)"}, fx_k}), Join({{"P(c_k)Δx"}, fΔx_k})}, "|_ccv")

photo
1

After a little work making the change on line and several crashes of other objects in the figure when working off line, Michael's code did work by making the change on line. Guess I need to update my local version or not have so much running at once?

Thanks! [How was I to know that Transpose() was limited in its application - or about the "v" parameter?]

photo
1

https://wiki.geogebra.org/e...

https://wiki.geogebra.org/e...

https://wiki.geogebra.org/e...

If you press F1 after selecting a tool it a command in GeoGebra, you are redirected to the wiki page that describes the tool/command

photo
© 2023 International GeoGebra Institute