I would like to define a function from the output of a series calculation without having to copy and paste. My code is below. The first four lines work fine. It’s the final line which doesn’t work. I have to copy the output of the fourth line and paste it on the right side of the final line (where the % currently is located) to make it work but this is very cumbersome.
This worked, thank you very much. The difference between your method and Bill’s is that yours shows the output by default, Bill’s doesn’t. I think I need to learn the details about the difference between := and = . Thanks for pointing me in an interesting direction.