Pedro Quintanilla
Subscriber

It is totally integer. The idea is that the values will be 1,2 or 3 and depending on the value, it is selected one of the density equations.

I selected double declarison because when you write a number in the Expressions window, it is saved as double. In the code, I tryed with var_aux==1.0... but it does not fix the problem. I tryed with real/float/double but it did not change so I guess it is not the problem

Programming is not usual for me so, I try to fix with simple syntaxis but it is possible this is a wrong code...