Menu

#1740 Weird Constant Value after Control-Z

Marx
closed
None
2critical
2024-02-13
2024-02-12
Steve Keen
No

I tried out your iota suggestion for my "Marginal Cost and MR" demo (successfully), then thought I'd change from my user-typed constant of 1 to the universal constant of 1. That failed, so I control-Z'd my way back to the original value, and saw these crazy numerical values (nan to some crazy power). They were it seems actually 1, 2 and 3 (for 3 powers of a polynomial) since that's what I saw as a value when I loaded the edit form.

4 Attachments

Discussion

  • Steve Keen

    Steve Keen - 2024-02-12

    That said, the iota function worked a treat, as does the Minsky model I produced using it to show the Neoclassical model of profit maximization (attached). Minsky killed this task compared to producing the same nonsense in Excel.

    The only complaint I have is that I bet some Neoclassical twirp ends up using it in a lecture!

     
  • Steve Keen

    Steve Keen - 2024-02-12
    • priority: 4normal --> 2critical
     
  • Steve Keen

    Steve Keen - 2024-02-12

    I spoke too soon. The weird constant effect also occurred on a save. I think Ty reported something similar recently.

     
  • Steve Keen

    Steve Keen - 2024-02-12

    MKY file.

     
  • High Performance Coder

    • assigned_to: High Performance Coder
     
  • High Performance Coder

    When loading a .mky file, Minsky::reset() is called. However, Minsky::reset() is meant to be idempotent (calling it a second time leaves the state unchanged), but this is not happening here, as pressing reset immediately after loading the file sets those constants to their correct values. Something is rotten in the state of Denmark.

     
  • Worlds Best Minsky Modeler

    Those bloody Danish, always up to no good...

     
  • High Performance Coder

    It appears that reset needs to be called twice in order for the tensor valued variables to be correctly sized and allocated in the variable space.

    Will have to do for now - this is an outcome of grafting on tensor valued expressions to a framework that expects scalars. Maybe in a future refactor, we can do it better.

     
  • High Performance Coder

    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel