INPUT() allowed types matrix - 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: INPUT() allowed types matrix ( /thread-11218.html) |

INPUT() allowed types matrix - DrD - 08-14-2018 11:01 AM
I would like to use ONLY input TYPE(0), Real, or TYPE(4), vector: This INPUT() [allowed types matrix], for vector v, doesn't work: Code:
It does accept the v = Real, TYPE(0), but does not accept the v = [x,y,z], TYPE(4), in the allowable types matrix. What to do? -Dale- RE: INPUT() allowed types matrix - Carlos295pz - 08-14-2018 11:27 AM
For now only one type is allowed at a time, [0], [2], [8], etc. RE: INPUT() allowed types matrix - Tim Wessman - 08-14-2018 01:12 PM
I think it is actually the "0" or real number part that is messing things up here. Having 0 in the list superceeds everything else which it probably shouldn't. For example [2,4] works as expected. This is probably due to having some special handling internally for real numbers originally that probably is messing it up. Not sure though. RE: INPUT() allowed types matrix - DrD - 08-14-2018 01:26 PM
I tried both ways, [0,4], and [4,0], so if having TYPE(0) anywhere in the list is overriding everything else that probably does explain things. Would it also have something to do with allowable type matrix containing [-1], (all types allowable)? In this case, it returns a string, TYPE(8), when a vector, TYPE(4) is provided as the input. |