mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-06 00:44:57 +05:30
feat: temperature converter
This commit is contained in:
parent
577530e6f6
commit
1dd434c9d1
2 changed files with 61 additions and 1 deletions
|
|
@ -3,10 +3,12 @@ import voltageDropInWire from './voltageDropInWire';
|
|||
import sphereArea from './sphereArea';
|
||||
import sphereVolume from './sphereVolume';
|
||||
import slackline from './slackline';
|
||||
import temperatureConversion from './temperature';
|
||||
export default [
|
||||
ohmslaw,
|
||||
voltageDropInWire,
|
||||
sphereArea,
|
||||
sphereVolume,
|
||||
slackline
|
||||
slackline,
|
||||
temperatureConversion
|
||||
];
|
||||
|
|
|
|||
58
src/pages/tools/number/generic-calc/data/temperature.ts
Normal file
58
src/pages/tools/number/generic-calc/data/temperature.ts
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
import type { GenericCalcType } from './types';
|
||||
|
||||
const temperatureConversion: GenericCalcType = {
|
||||
icon: 'carbon:temperature-inversion',
|
||||
keywords: ['temperature', 'conversion', 'celcius', 'fahrenheit', 'Kelvin'],
|
||||
shortDescription:
|
||||
'Convert temperatures between Celsius and Fahrenheit scales',
|
||||
name: 'Temperature Converter',
|
||||
path: 'temperaure-conversion',
|
||||
description: 'Convert temperatures between common scales',
|
||||
longDescription: `This calculator allows you to convert temperatures between Celsius, Fahrenheit, Kelvin, and Rankine. It is useful for scientists, engineers, students, and anyone needing to switch between these temperature scales for various applications.
|
||||
|
||||
Formulas Used:
|
||||
|
||||
Celsius (°C) ↔ Fahrenheit (°F):
|
||||
°F = (°C × 9/5) + 32, and °C = (°F - 32) × 5/9 ||
|
||||
|
||||
Celsius (°C) ↔ Kelvin (K):
|
||||
K = °C + 273.15, and °C = K - 273.15 ||
|
||||
|
||||
Celsius (°C) ↔ Rankine (°R):
|
||||
°R = (°C + 273.15) × 9/5, and °C = (°R - 491.67) × 5/9 ||
|
||||
|
||||
Kelvin (K) ↔ Fahrenheit (°F):
|
||||
°F = (K - 273.15) × 9/5 + 32, and K = (°F - 32) × 5/9 + 273.15 ||
|
||||
|
||||
Kelvin (K) ↔ Rankine (°R):
|
||||
°R = K × 9/5, and K = °R × 5/9`,
|
||||
formula: 'TdegC = (TdegF - 32) * 5/9',
|
||||
presets: [],
|
||||
variables: [
|
||||
{
|
||||
name: 'TdegC',
|
||||
title: 'Celsius',
|
||||
unit: 'tempC'
|
||||
},
|
||||
{
|
||||
name: 'TdegF',
|
||||
title: 'Farenheit',
|
||||
unit: 'tempF',
|
||||
default: 32,
|
||||
alternates: [
|
||||
{
|
||||
title: 'Kelvin',
|
||||
formula: 'x = (v -32) * 5/9 + 273.15',
|
||||
unit: 'tempK'
|
||||
},
|
||||
{
|
||||
title: 'Rankine',
|
||||
formula: 'x = v + 459.67',
|
||||
unit: 'tempR'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default temperatureConversion;
|
||||
Loading…
Add table
Add a link
Reference in a new issue