Converting Temperature from Celsius to Fahrenheit
Hi Guys,Well, here’s the program which I did for converting temperature from Celsius to Fahrenheit. I had done this conversion using 3 different methods. But it has only on formula
i.e; Fahrenheit = 1.8 * (Celsius) + 32
1st Method is by using Mathematical Expressions like Addition, Multiplication,etc., from Functions Palette - Arithmetic & Comparison - Numeric
2nd Method is by using Formula Node which is available from Functions Palette - Programming - Structural - Formula Node.
3rd Method is by using Formula, which is available from Functions Palette - Arithmetic & Comparison - Formula.
The program for converting temperature from Celsius to Fahrenheit is given below
Regards
KiranSravan
i.e; Fahrenheit = 1.8 * (Celsius) + 32
1st Method is by using Mathematical Expressions like Addition, Multiplication,etc., from Functions Palette - Arithmetic & Comparison - Numeric
2nd Method is by using Formula Node which is available from Functions Palette - Programming - Structural - Formula Node.
3rd Method is by using Formula, which is available from Functions Palette - Arithmetic & Comparison - Formula.
The program for converting temperature from Celsius to Fahrenheit is given below
Program for converting temperature from Celsius to Fahrenheit. |
- For the 1st method, just addition and multiplication is used.
- For the 2nd method, we use the formula node method, where we have to specify some formula.
- Here, i have specified the formula as y=m*x+c; and defined m and c as constants which are 1.8 and 32 respectively and x as a variable input.
- Thus the output is defined by 'y' and given it to the indicator.
- The last method is quite same as the 2nd but the formula has to be specified in a dialog box and it does the rest...
Regards
KiranSravan