Computing speed and CPU performance consumption with different combinations of "IF" statement
Greetings
I have a rather strange question, with topic that some people might consider insignificant and unimportant, but this particular function that Im making will probably be used numerous times in a single worksheet. For that reason Im trying to optimize almost every function in my file as much as possible. Ofcourse I dont expect a detailed answer with testing results etc, but rather your thoughts on this topic.
In this case, I need to determine in which region of IAPWS-IF97 (formulation for thermodynamic properties of water) the point lies on a pressure-temperature plot.
P-T Diagram, Validity range of IF-97
So, here is the question itself: wich model of (p,T) function would be faster and easier to calculate (e.g. on a low-spec hardware), the one with separated IF`s, or the one where IF`s combined with usage of multiple "and (˄)" and "or (˅)"?
And will the result be different in Mathcad Prime?
Model 1

Model 2

Functions and constants used (for clarification, in case you are interested)
- ps(T) - saturation pressure at given temperature
- pB23(T) - pressure-temperature equation for boundary between regions 2 and 3
- TB23(p) - backward version of pB23(T)
- T0 = 273.15 K
- p0 = ps(273.15 K) = 611.213 Pa
- Tc = 647.096 K
- pc = 22.064 MPa
- R7PresValRangeErr = "Error: Pressure is Out of the Validity Range (611.213 Pa ≤ p ≤ 100 MPa)"
- R7TempValRangeErr = "Error: Temperature is Out of the Validity Range (273.15 K ≤ T ≤ 2273.15 K)"
Reg5ValRangeErr = "Error: Point is Out of the Validity Range of Region 5 (611.213 Pa ≤ p ≤ 50 MPa, 1073.15 K < T ≤ 2273.15 K)"

