Files
omni-tools/src/pages/tools/number/generic-calc/data/sphereVolume.ts

35 lines
642 B
TypeScript
Raw Normal View History

import type { GenericCalcType } from './types';
2025-04-05 04:36:22 +00:00
const volumeSphere: GenericCalcType = {
2025-04-17 08:03:18 +01:00
icon: 'gravity-ui:sphere',
keywords: [],
shortDescription: '',
name: 'Volume of a Sphere',
path: 'volume-sphere',
description: 'Volume of a Sphere',
formula: 'v = (4/3) * pi * r**3',
2025-04-05 04:36:22 +00:00
presets: [],
variables: [
{
name: 'v',
title: 'Volume',
unit: 'mm3'
},
{
name: 'r',
title: 'Radius',
unit: 'mm',
default: 1,
alternates: [
{
title: 'Diameter',
formula: 'x = 2 * v',
unit: 'mm'
}
]
}
]
};
2025-04-05 04:36:22 +00:00
export default volumeSphere;