Add 40 light conversions

This commit is contained in:
Codex
2026-03-07 18:57:58 +00:00
parent f35ca56732
commit 48659e63c3
3 changed files with 125 additions and 45 deletions

View File

@@ -51,7 +51,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "angstroms-to-nanometers", "name": "Angstroms to Nanometers", "category": "length", "type": "standard", "teaser": "A materials scientist changes 25 angstroms into nanometers to describe a film thickness.", "labels": {"in1": "Angstroms", "in2": "Nanometers"}, "factor": 0.1, "hidden": true},
{"slug": "apothecary-ounces-to-grams", "name": "Apothecary Ounces to Grams", "category": "weight", "type": "standard", "teaser": "Preparing a tincture, how many grams are packed in 8 apothecary ounces?", "labels": {"in1": "Apothecary Ounces", "in2": "Grams"}, "factor": 31.1034768},
{"slug": "atomic-mass-units-to-kilograms", "name": "Atomic Mass Units to Kilograms", "category": "weight", "type": "standard", "teaser": "Express an amu in kilograms while working with nuclear scales.", "labels": {"in1": "Atomic Mass Units", "in2": "Kilograms"}, "factor": 1.6605390666e-27},
{"slug": "astronomical-units-to-light-years", "name": "Astronomical Units to Light Years", "category": "time", "type": "standard", "teaser": "The astronomer asks how many light years correspond to 5 astronomical units.", "labels": {"in1": "Astronomical Units", "in2": "Light Years"}, "factor": 1.58125074e-05, "hidden": true},
{"slug": "astronomical-units-to-light-years", "name": "Astronomical Units to Light Years", "category": "light", "type": "standard", "teaser": "The astronomer asks how many light years correspond to 5 astronomical units.", "labels": {"in1": "Astronomical Units", "in2": "Light Years"}, "factor": 1.58125074e-05, "hidden": true},
{"slug": "astronomical-units-to-kilometers", "name": "Astronomical Units to Kilometers", "category": "length", "type": "standard", "teaser": "How many kilometers span one astronomical unit (approx Earth-Sun distance)?", "labels": {"in1": "Astronomical Units", "in2": "Kilometers"}, "factor": 149597870.7},
{"slug": "astronomical-units-to-miles", "name": "Astronomical Units to Miles", "category": "length", "type": "standard", "teaser": "See the same astronomical distance measured in miles.", "labels": {"in1": "Astronomical Units", "in2": "Miles"}, "factor": 92955807.3},
{"slug": "atmosphere-to-mmhg", "name": "Atmosphere to mmHg", "category": "pressure", "type": "standard", "teaser": "In the lab, what is 2 atmospheres of pressure in millimeters of mercury?", "labels": {"in1": "Atmosphere", "in2": "mmHg"}, "factor": 760.0},
@@ -326,12 +326,12 @@ export const calculators: CalculatorDef[] = [
{"slug": "kilowatts-to-tons-of-refrigeration", "name": "Kilowatts to Tons of refrigeration", "category": "weight", "type": "standard", "labels": {"in1": "Kilowatts", "in2": "Tons of refrigeration"}, "factor": 0.284345136, "hidden": true},
{"slug": "kilowatt-hours-to-megajoules", "name": "Kilowatt-hours to Megajoules", "category": "energy", "type": "standard", "labels": {"in1": "Kilowatt-hours", "in2": "Megajoules"}, "factor": 3.6},
{"slug": "knots-to-miles-per-hour", "name": "Knots to Miles per hour", "category": "length", "type": "standard", "labels": {"in1": "Knots", "in2": "Miles per hour"}, "factor": 1.15077945},
{"slug": "light-years-to-astronomical-units", "name": "Light years to Astronomical units", "category": "time", "type": "standard", "labels": {"in1": "Light years", "in2": "Astronomical units"}, "factor": 63241.077},
{"slug": "light-years-to-parsecs", "name": "Light years to Parsecs", "category": "time", "type": "standard", "labels": {"in1": "Light years", "in2": "Parsecs"}, "factor": 0.306601394, "hidden": true},
{"slug": "light-years-to-astronomical-units", "name": "Light years to Astronomical units", "category": "light", "type": "standard", "labels": {"in1": "Light years", "in2": "Astronomical units"}, "factor": 63241.077},
{"slug": "light-years-to-parsecs", "name": "Light years to Parsecs", "category": "light", "type": "standard", "labels": {"in1": "Light years", "in2": "Parsecs"}, "factor": 0.306601394, "hidden": true},
{"slug": "liters-per-second-to-gallons-per-minute", "name": "Liters per second to Gallons per minute", "category": "volume", "type": "standard", "labels": {"in1": "Liters per second", "in2": "Gallons per minute"}, "factor": 15.8503231},
{"slug": "parsecs-to-astronomical-units", "name": "Parsecs to Astronomical Units", "category": "other", "type": "standard", "teaser": "Translate parsec distances into astronomical units.", "labels": {"in1": "Parsecs", "in2": "Astronomical Units"}, "factor": 206265.0},
{"slug": "parsecs-to-kilometers", "name": "Parsecs to Kilometers", "category": "length", "type": "standard", "teaser": "Turn parsecs into kilometers for cosmic scales.", "labels": {"in1": "Parsecs", "in2": "Kilometers"}, "factor": 30856775814913.7},
{"slug": "parsecs-to-light-years", "name": "Parsecs to Light Years", "category": "time", "type": "standard", "teaser": "Express parsecs as light years.", "labels": {"in1": "Parsecs", "in2": "Light Years"}, "factor": 3.261563777},
{"slug": "parsecs-to-light-years", "name": "Parsecs to Light Years", "category": "light", "type": "standard", "teaser": "Express parsecs as light years.", "labels": {"in1": "Parsecs", "in2": "Light Years"}, "factor": 3.261563777},
{"slug": "parsecs-to-miles", "name": "Parsecs to Miles", "category": "length", "type": "standard", "teaser": "Express parsecs in statute miles.", "labels": {"in1": "Parsecs", "in2": "Miles"}, "factor": 19181367000000.0},
{"slug": "liters-to-gallons", "name": "Liters to Gallons", "category": "volume", "type": "standard", "labels": {"in1": "Liters", "in2": "Gallons"}, "factor": 0.264172052, "hidden": true},
{"slug": "liters-to-pints", "name": "Liters to Pints", "category": "volume", "type": "standard", "labels": {"in1": "Liters", "in2": "Pints"}, "factor": 2.11337642},
@@ -977,6 +977,46 @@ export const calculators: CalculatorDef[] = [
{"slug": "yards-to-centimeters", "name": "Yards to Centimeters", "category": "length", "type": "standard", "teaser": "Convert yards into centimeters for sewing and textiles.", "labels": {"in1": "Yards", "in2": "Centimeters"}, "factor": 91.44},
{"slug": "yards-to-feet", "name": "Yards to Feet", "category": "length", "type": "standard", "teaser": "Turn yards into feet for carpentry math.", "labels": {"in1": "Yards", "in2": "Feet"}, "factor": 3.0},
{"slug": "yards-to-inches", "name": "Yards to Inches", "category": "length", "type": "standard", "teaser": "Convert yards into inches for finer measurements.", "labels": {"in1": "Yards", "in2": "Inches"}, "factor": 36.0},
{"slug": "angstroms-to-light-years", "name": "Angstroms to Light Years", "category": "light", "type": "standard", "teaser": "Convert atomic-scale lengths into cosmic light-year spans.", "labels": {"in1": "Angstroms", "in2": "Light Years"}, "factor": 1.05700083402e-26, "hidden": true},
{"slug": "cables-to-light-years", "name": "Cables to Light Years", "category": "length", "type": "standard", "teaser": "Compare nautical cable graduations with interstellar distances.", "labels": {"in1": "Cables", "in2": "Light Years"}, "factor": 1.95756554461e-14, "hidden": true},
{"slug": "centimeters-per-second-to-speed-of-light", "name": "Centimeters Per Second to Speed Of Light", "category": "length", "type": "standard", "teaser": "Show a centimeter-per-second pace as a fraction of c.", "labels": {"in1": "Centimeters Per Second", "in2": "Speed Of Light"}, "factor": 3.33564095198e-11},
{"slug": "centimeters-per-second-to-speed-of-light-c", "name": "Centimeters Per Second to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Reference the same ratio explicitly with c.", "labels": {"in1": "Centimeters Per Second", "in2": "Speed Of Light (c)"}, "factor": 3.33564095198e-11},
{"slug": "centimeters-to-light-years", "name": "Centimeters to Light Years", "category": "length", "type": "standard", "teaser": "Translate tiled centimeters into the light-year scale.", "labels": {"in1": "Centimeters", "in2": "Light Years"}, "factor": 1.05700083402e-18, "hidden": true},
{"slug": "chains-to-light-years", "name": "Chains to Light Years", "category": "length", "type": "standard", "teaser": "Turn chain-length surveying units into cosmic distances.", "labels": {"in1": "Chains", "in2": "Light Years"}, "factor": 2.12634743779e-15, "hidden": true},
{"slug": "cm-per-second-to-speed-of-light", "name": "Cm Per Second to Speed Of Light", "category": "speed", "type": "standard", "teaser": "Alias centimeters per second compared to c.", "labels": {"in1": "Cm Per Second", "in2": "Speed Of Light"}, "factor": 3.33564095198e-11},
{"slug": "cm-per-second-to-speed-of-light-c", "name": "Cm Per Second to Speed Of Light (c)", "category": "speed", "type": "standard", "teaser": "Same as above but referencing the speed-of-light constant.", "labels": {"in1": "Cm Per Second", "in2": "Speed Of Light (c)"}, "factor": 3.33564095198e-11},
{"slug": "cubits-to-light-years", "name": "Cubits to Light Years", "category": "data", "type": "standard", "teaser": "Place Egyptian cubit measures beside light-year spans.", "labels": {"in1": "Cubits", "in2": "Light Years"}, "factor": 4.83260781316e-17, "hidden": true},
{"slug": "fathoms-to-light-years", "name": "Fathoms to Light Years", "category": "length", "type": "standard", "teaser": "Compare depths in fathoms to the length of a light year.", "labels": {"in1": "Fathoms", "in2": "Light Years"}, "factor": 1.93304312526e-16, "hidden": true},
{"slug": "feet-per-second-to-speed-of-light", "name": "Feet Per Second to Speed Of Light", "category": "length", "type": "standard", "teaser": "Convert running speeds into c fractions.", "labels": {"in1": "Feet Per Second", "in2": "Speed Of Light"}, "factor": 1.01670336216e-09},
{"slug": "feet-per-second-to-speed-of-light-c", "name": "Feet Per Second to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Same conversion explicitly referencing c.", "labels": {"in1": "Feet Per Second", "in2": "Speed Of Light (c)"}, "factor": 1.01670336216e-09},
{"slug": "feet-to-light-years", "name": "Feet to Light Years", "category": "length", "type": "standard", "teaser": "Expand foot measures out to light-year scales.", "labels": {"in1": "Feet", "in2": "Light Years"}, "factor": 3.22173854211e-17, "hidden": true},
{"slug": "fermi-to-light-years", "name": "Fermi to Light Years", "category": "light", "type": "standard", "teaser": "Bridge subatomic fermis with light-year distances.", "labels": {"in1": "Fermi", "in2": "Light Years"}, "factor": 1.05700083402e-31, "hidden": true},
{"slug": "furlongs-per-fortnight-to-speed-of-light", "name": "Furlongs Per Fortnight to Speed Of Light", "category": "speed", "type": "standard", "teaser": "Express historic pacing as a fraction of c.", "labels": {"in1": "Furlongs Per Fortnight", "in2": "Speed Of Light"}, "factor": 5.54748858324e-13},
{"slug": "furlongs-per-fortnight-to-speed-of-light-c", "name": "Furlongs Per Fortnight to Speed Of Light (c)", "category": "speed", "type": "standard", "teaser": "Alias referencing the constant c.", "labels": {"in1": "Furlongs Per Fortnight", "in2": "Speed Of Light (c)"}, "factor": 5.54748858324e-13},
{"slug": "furlongs-to-light-years", "name": "Furlongs to Light Years", "category": "light", "type": "standard", "teaser": "Turn furlongs into astronomical distances.", "labels": {"in1": "Furlongs", "in2": "Light Years"}, "factor": 2.12634743779e-14, "hidden": true},
{"slug": "hands-to-light-years", "name": "Hands to Light Years", "category": "light", "type": "standard", "teaser": "Stack horse-hand height units up against light years.", "labels": {"in1": "Hands", "in2": "Light Years"}, "factor": 1.07391284737e-17, "hidden": true},
{"slug": "inches-per-second-to-speed-of-light", "name": "Inches Per Second to Speed Of Light", "category": "length", "type": "standard", "teaser": "Express inch-per-second velocities vs c.", "labels": {"in1": "Inches Per Second", "in2": "Speed Of Light"}, "factor": 8.47252801803e-11},
{"slug": "inches-per-second-to-speed-of-light-c", "name": "Inches Per Second to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Same but referencing c explicitly.", "labels": {"in1": "Inches Per Second", "in2": "Speed Of Light (c)"}, "factor": 8.47252801803e-11},
{"slug": "inches-to-light-years", "name": "Inches to Light Years", "category": "length", "type": "standard", "teaser": "Relate inches to light-year scales for minuscule measurements.", "labels": {"in1": "Inches", "in2": "Light Years"}, "factor": 2.68478211842e-18},
{"slug": "kilometers-per-hour-to-speed-of-light", "name": "Kilometers Per Hour to Speed Of Light", "category": "length", "type": "standard", "teaser": "Compare highway speeds to the speed of light.", "labels": {"in1": "Kilometers Per Hour", "in2": "Speed Of Light"}, "factor": 9.26566931106e-10},
{"slug": "kilometers-per-hour-to-speed-of-light-c", "name": "Kilometers Per Hour to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Same ratio referencing c explicitly.", "labels": {"in1": "Kilometers Per Hour", "in2": "Speed Of Light (c)"}, "factor": 9.26566931106e-10},
{"slug": "kilometers-to-light-years", "name": "Kilometers to Light Years", "category": "length", "type": "standard", "teaser": "Express kilometer distances in light years.", "labels": {"in1": "Kilometers", "in2": "Light Years"}, "factor": 1.05700083402e-13, "hidden": true},
{"slug": "km-s-to-speed-of-light-c", "name": "Km/s to Speed Of Light (c)", "category": "light", "type": "standard", "teaser": "Turn kilometers per second into a fraction of c.", "labels": {"in1": "Km/s", "in2": "Speed Of Light (c)"}, "factor": 3.33564095198e-06},
{"slug": "knots-to-speed-of-light", "name": "Knots to Speed Of Light", "category": "speed", "type": "standard", "teaser": "Map nautical knots into c fractions.", "labels": {"in1": "Knots", "in2": "Speed Of Light"}, "factor": 1.7160004739e-09},
{"slug": "knots-to-speed-of-light-c", "name": "Knots to Speed Of Light (c)", "category": "speed", "type": "standard", "teaser": "Alias referencing the constant c.", "labels": {"in1": "Knots", "in2": "Speed Of Light (c)"}, "factor": 1.7160004739e-09},
{"slug": "leagues-per-hour-to-speed-of-light", "name": "Leagues Per Hour to Speed Of Light", "category": "length", "type": "standard", "teaser": "Compare archaic travel speeds to c.", "labels": {"in1": "Leagues Per Hour", "in2": "Speed Of Light"}, "factor": 4.47349479352e-09},
{"slug": "leagues-per-hour-to-speed-of-light-c", "name": "Leagues Per Hour to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Same ratio referencing c explicitly.", "labels": {"in1": "Leagues Per Hour", "in2": "Speed Of Light (c)"}, "factor": 4.47349479352e-09},
{"slug": "leagues-to-light-years", "name": "Leagues to Light Years", "category": "length", "type": "standard", "teaser": "Turn leagues into interstellar spans.", "labels": {"in1": "Leagues", "in2": "Light Years"}, "factor": 5.1032338507e-13},
{"slug": "light-years-to-angstroms", "name": "Light Years to Angstroms", "category": "light", "type": "standard", "teaser": "Flip a light-year into atomic-scale angstroms.", "labels": {"in1": "Light Years", "in2": "Angstroms"}, "factor": 9.46073047258e+25},
{"slug": "light-years-to-cables", "name": "Light Years to Cables", "category": "length", "type": "standard", "teaser": "Express a light-year as a count of cables.", "labels": {"in1": "Light Years", "in2": "Cables"}, "factor": 51083857843300.0},
{"slug": "light-years-to-centimeters", "name": "Light Years to Centimeters", "category": "length", "type": "standard", "teaser": "Spread a light-year across centimeter units.", "labels": {"in1": "Light Years", "in2": "Centimeters"}, "factor": 9.46073047258e+17},
{"slug": "light-years-to-chains", "name": "Light Years to Chains", "category": "length", "type": "standard", "teaser": "Turn the cosmic mile into surveyor chains.", "labels": {"in1": "Light Years", "in2": "Chains"}, "factor": 470290029855000.0},
{"slug": "light-years-to-cubits", "name": "Light Years to Cubits", "category": "data", "type": "standard", "teaser": "Translate a light-year into cubits.", "labels": {"in1": "Light Years", "in2": "Cubits"}, "factor": 2.06927613136e+16},
{"slug": "light-years-to-fathoms", "name": "Light Years to Fathoms", "category": "length", "type": "standard", "teaser": "Express a light-year in fathoms.", "labels": {"in1": "Light Years", "in2": "Fathoms"}, "factor": 5173190328400000.0},
{"slug": "light-years-to-feet", "name": "Light Years to Feet", "category": "length", "type": "standard", "teaser": "Convert a light-year into feet.", "labels": {"in1": "Light Years", "in2": "Feet"}, "factor": 3.10391419704e+16},
{"slug": "light-years-to-fermi", "name": "Light Years to Fermi", "category": "light", "type": "standard", "teaser": "Stretch a light-year into femtometer scales.", "labels": {"in1": "Light Years", "in2": "Fermi"}, "factor": 9.46073047258e+30},
{"slug": "light-years-to-furlongs", "name": "Light Years to Furlongs", "category": "light", "type": "standard", "teaser": "Translate cosmic distances into furlongs.", "labels": {"in1": "Light Years", "in2": "Furlongs"}, "factor": 47029002985500.0},
{"slug": "light-years-to-hands", "name": "Light Years to Hands", "category": "light", "type": "standard", "teaser": "Compare a light-year to a stack of hands.", "labels": {"in1": "Light Years", "in2": "Hands"}, "factor": 9.31174259112e+16},
];