2025-04-04 00:53:21 -06:00
|
|
|
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',
|
2025-04-04 00:53:21 -06:00
|
|
|
description: 'Volume of a Sphere',
|
|
|
|
|
formula: 'v = (4/3) * pi * r**3',
|
2025-04-05 04:36:22 +00:00
|
|
|
presets: [],
|
2025-04-04 00:53:21 -06:00
|
|
|
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;
|