why the program, reported below, does not work? There seem to be problems with conditional operators. In fact the program on the right, where no conditional operators appear, gives the required result.
I sincerely thank those who will find the error and all those who will try to solve it.
Attached is the worksheet.
Solved! Go to Solution.
The if() function and the if construct don't always work symbolically. The step function 'Phi()' may be a symbolic alternative:
Incidentally, those simple theta's at the end of many of your if-blocks do not actually do something.
It's the final theta, at the end of the program that produces the result.
If you want your program to produce the result of the first if statement that is TRUE, you can use:
Where return is the programming construct, from the programming panel...
The evaluation of the same logical equation in the comparisons takes on opposite values as seen in the photo, so nothing works.
thank you for the time and work dedicated to me, but your answer gives a different result from the one I expected and that you know what it is.