Skip to main content
15-Moonstone
February 21, 2023
Solved

Simplification for entering the initial values

  • February 21, 2023
  • 1 reply
  • 1693 views

A friendly hello to all,

In the attached file from MC14 there are two solution blocks at the end for solving differential equations. So far I had to enter the same initial values in each solution block. Can these initial values be entered only once somewhere before for both solution blocks?

Kind regards, Alfred Flasshaar

Best answer by Werner_E

How about defining variables with the initial values in front of the first solve block

Werner_E_0-1676973724635.png

and using these variables as initial values

Werner_E_1-1676973781738.png

Of course you don't need to define the variables uses a vector and you may also use a global definition

Werner_E_2-1676973909682.png,
so you would be able to set the values anywhere in the sheet, not necessarily in front of the first solve block.

 

But I wonder what the second solve block would be good for? Its the very same as the first one and of course it would yield the very same results. So you could delete it without harm and the sheet would still work OK.

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
February 21, 2023

How about defining variables with the initial values in front of the first solve block

Werner_E_0-1676973724635.png

and using these variables as initial values

Werner_E_1-1676973781738.png

Of course you don't need to define the variables uses a vector and you may also use a global definition

Werner_E_2-1676973909682.png,
so you would be able to set the values anywhere in the sheet, not necessarily in front of the first solve block.

 

But I wonder what the second solve block would be good for? Its the very same as the first one and of course it would yield the very same results. So you could delete it without harm and the sheet would still work OK.

15-Moonstone
February 21, 2023

Thank You 🙂 !