whatisgithub

What is unitdc?

eternal-flame-ad/unitdc — explained in plain English

Analysis updated 2026-07-16 · repo last pushed 2021-10-18

GoAudience · researcherComplexity · 2/5DormantSetup · easy

In one sentence

A scientific calculator built in Go that tracks physical units through every calculation, catching mismatched units and converting automatically so engineers and scientists get physically meaningful results.

Mindmap

mindmap
  root((repo))
    What it does
      Unit-aware calculator
      RPN input style
      Auto unit conversion
      Mismatched unit errors
    Tech stack
      Go language
      Single binary
      No extra software
    Use cases
      Engineering stress calc
      Physics equations
      Chemistry conversions
      Student dimensional analysis
    Audience
      Engineers
      Physicists
      Chemists
      Students
    Docs
      GitHub wiki
      Classic dc inspiration
    Inputs and outputs
      Physical quantities in
      Converted results out
      Error on bad units

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run engineering stress calculations with automatic unit conversion across different measurement systems.

USE CASE 2

Convert and calculate physical quantities like pressure, force, and area without manual conversion factors.

USE CASE 3

Check dimensional analysis in physics or chemistry homework and research calculations.

USE CASE 4

Build complex multi-step calculations step by step without worrying about mismatched units.

What is it built with?

GoRPN

How does it compare?

eternal-flame-ad/unitdcaasheeshlikepanner/vasealexzielenski/controller-runtime
Stars0
LanguageGoGoGo
Last pushed2021-10-182022-04-20
MaintenanceDormantDormant
Setup difficultyeasymoderatehard
Complexity2/54/54/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Written in Go so it compiles to a single binary with no extra dependencies, detailed docs live in the GitHub wiki.

The license terms are not specified in the repository explanation, so check the repo's LICENSE file for details.

So what is it?

UnitDC is a calculator designed for scientific and engineering work where units matter as much as the numbers themselves. Think of it as a calculator that actually understands that multiplying 5 meters by 3 meters gives you 15 square meters, not just "15." It uses a system called RPN (Reverse Polish Notation), which is a style of calculation popular among scientists and engineers because it handles complex multi-step calculations without needing parentheses. The name references "dc," a classic Unix calculator program that has been around since the 1970s. Like that older tool, you enter numbers first and then tell it what operation to perform, which lets you build up calculations step by step. The key difference here is that every number carries its units along with it, so the calculator can check whether your math makes physical sense. If you try to add kilograms to meters, it will catch the mistake rather than silently giving you a wrong answer. This tool is built for people who do calculations involving physical quantities, engineers running stress calculations, physicists working through equations, chemists converting between units, or students learning dimensional analysis. For example, if you need to compute pressure from force and area but your force is in pounds and your area is in square inches, the calculator handles the conversions automatically and gives you a result in whatever unit you need. The project is written in Go, which means it runs as a single fast program without needing extra software installed. Beyond that, the README points to a GitHub wiki for full documentation but doesn't go into further detail on its own about specific features or supported units, so you would need to check there to see exactly what it can handle.

Copy-paste prompts

Prompt 1
Help me install and run UnitDC on my machine, then show me how to calculate pressure from a force in pounds and an area in square inches.
Prompt 2
Write a UnitDC calculation sequence that converts a speed from miles per hour to meters per second using RPN entry.
Prompt 3
Show me how to use UnitDC to compute the energy in joules given a mass in kilograms and a velocity in feet per second, with automatic unit conversion.
Prompt 4
Demonstrate how UnitDC catches a unit mismatch error when I try to add kilograms to meters, and explain how to fix the calculation.

Frequently asked questions

What is unitdc?

A scientific calculator built in Go that tracks physical units through every calculation, catching mismatched units and converting automatically so engineers and scientists get physically meaningful results.

What language is unitdc written in?

Mainly Go. The stack also includes Go, RPN.

Is unitdc actively maintained?

Dormant — no commits in 2+ years (last push 2021-10-18).

What license does unitdc use?

The license terms are not specified in the repository explanation, so check the repo's LICENSE file for details.

How hard is unitdc to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is unitdc for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.