An HP71 does not like F as a variable
|
12-12-2023, 08:27 AM
Post: #6
|
|||
|
|||
RE: An HP71 does not like F as a variable
(12-12-2023 05:35 AM)Paul Dale Wrote: The error message could definitely be more informative. I agree, for beginners. But once you know it, it's clear: one or both parts of the assign operation are not of the right types. The error message could be "Not Scalar Type", but I'm not sure it would help beginners so much. Quote:Likewise, why shouldn't the assignment just work? Well no. In classic BASIC, you can assign a scalar value to an entire array only with: MAT F=(2) However, you can directly do, Z being a COMPLEX type variable: Z=2 instead of an explicit Z=(2,0) because the complex type is considered as a scalar type (in opposition to arrays) so implicit real to complex type conversion is possible. The opposite (complex to real conversion) is not possible : -> Data Type error. J-F |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
An HP71 does not like F as a variable - waspentalive - 12-11-2023, 03:32 AM
RE: An HP71 does not like F as a variable - rprosperi - 12-11-2023, 01:01 PM
RE: An HP71 does not like F as a variable - Valentin Albillo - 12-11-2023, 03:53 PM
RE: An HP71 does not like F as a variable - cruff - 12-12-2023, 02:43 AM
RE: An HP71 does not like F as a variable - Paul Dale - 12-12-2023, 05:35 AM
RE: An HP71 does not like F as a variable - J-F Garnier - 12-12-2023 08:27 AM
RE: An HP71 does not like F as a variable - Paul Dale - 12-12-2023, 09:49 AM
RE: An HP71 does not like F as a variable - toml_12953 - 12-12-2023, 08:53 PM
RE: An HP71 does not like F as a variable - rprosperi - 12-13-2023, 01:04 PM
RE: An HP71 does not like F as a variable - vaklaff - 12-13-2023, 01:52 PM
|
User(s) browsing this thread: 1 Guest(s)