![]() |
Define function with unit inside ? [Emulator BIG BUG ?] - 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: Define function with unit inside ? [Emulator BIG BUG ?] (/thread-3903.html) |
Define function with unit inside ? [Emulator BIG BUG ?] - dg1969 - 05-18-2015 08:04 PM I'd like to define a custom function with the shift "define" key as : Code:
or simply: Code:
or just : Code:
But the prime say: "syntax error"... Can we mix unit and/or unit conversion in such custom define function ? RE: Define function with unit inside ? - salvomic - 05-18-2015 08:07 PM (05-18-2015 08:04 PM)dg1969 Wrote: ... perhaps it's not possible to do it... but, a part of that, with new firmware here after to Define a function, I'll get "object error" also with simple expressions, like X=X". If I close and restart the calculator or only refresh from CK, every functions will be signed as "object error"... See here my post, then tell me if this happens also by you... Salvo RE: Define function with unit inside ? - dg1969 - 05-18-2015 08:25 PM (05-18-2015 08:07 PM)salvomic Wrote: but, a part of that, with new firmware here after to Define a function, I'll get "object error" also with simple expressions, like X=X". Thank's for you answer.... It look's like a big bug here... With the emulator I've just try to define a custom function named "toto" Code:
first test : toto(1) : 1.2 good ! after being stopped and restarted (3rd image) the emulator answer : NAN ! and crash few seconds after... RE: Define function with unit inside ? [BIG BUG ?] - salvomic - 05-18-2015 08:28 PM (05-18-2015 08:25 PM)dg1969 Wrote: Thank's for you answer.... It look's like a big bug here... in fact! a big bug... Go to shift+B (Mem), User Variables, you should see it as "object: error..." Pratically, after Define, Prime and Emulator kill the function :-( RE: Define function with unit inside ? [Emulator BIG BUG ?] - dg1969 - 05-18-2015 08:42 PM (05-18-2015 08:28 PM)salvomic Wrote: in fact! Strangely not here... Now if I start the emulator it first crash and restart. message box say: "the application has crashed and will be restarted" After that no trace of "toto" function... BUT in the physical prime no problem occur ! I can define TOTO, use it (before shut down and after a restart ), and finally I can delete "TOTO" from the shift "Mem>>User Vars " without problem... RE: Define function with unit inside ? [Emulator BIG BUG ?] - petaks01 - 05-18-2015 08:42 PM It even screws up the defined input variables and selects all as inputs, useless as it is today. RE: Define function with unit inside ? [Emulator BIG BUG ?] - dg1969 - 05-18-2015 09:13 PM Now if I try to access the emulator from the connectivity kit the CK crash !!! I uninstalled the emulator and then re-install it.... But these fresh emulator version still crash and restart every time I launch it... Then also the CK... Any idea ? What files should I delete to return to a stable situation ? Advices are welcome... For me it 's time for bed, that is enough for tonight. RE: Define function with unit inside ? [Emulator BIG BUG ?] - salvomic - 05-18-2015 09:22 PM (05-18-2015 09:13 PM)dg1969 Wrote: Now if I try to access the emulator from the connectivity kit the CK crash !!! few evenings ago I had a similar behavior... Try in Emulator to go to Mem -> User Variables, search for the variables "object error" and try to delete them or change their value into a real (es. 45), then restart CK with emulator... The bug here was "reduced" mostly in this manner, but the last variable, even if changed into real, is not deletable: also after a reset re-appear! |