Sofware to check equation units

  • Thread starter Thread starter Enthalpy
  • Start date Start date
  • Tags Tags
    Units
Click For Summary
SUMMARY

The discussion centers on developing software that verifies the compatibility of units within mathematical equations, specifically focusing on physical quantities like pressure and force. The application should feature a user-friendly interface that allows for easy input of equations, supporting operations such as addition, subtraction, multiplication, division, exponentiation, and square roots. It must recognize both common SI units and less frequent units like Jansky and Eötvös, while also providing diagnostic feedback on discrepancies in unit usage. The project is deemed beneficial for users who may struggle with unit conversions and checks.

PREREQUISITES
  • Understanding of physical units and their relationships, particularly in SI and CGS systems.
  • Familiarity with mathematical operations and functions, including basic arithmetic and square roots.
  • Knowledge of user interface design principles for software applications.
  • Experience with programming concepts related to input validation and error detection.
NEXT STEPS
  • Research unit conversion libraries available in programming languages like Python or JavaScript.
  • Explore user interface design frameworks that facilitate equation input and display.
  • Learn about implementing error detection algorithms for unit compatibility checks.
  • Investigate existing software solutions for unit verification to identify gaps and opportunities for improvement.
USEFUL FOR

This discussion is beneficial for software developers, particularly those interested in scientific computing, educational tools, and anyone involved in creating applications that require unit verification and error checking in mathematical equations.

Enthalpy
Messages
667
Reaction score
4
Hello everybody!

Once again, someone searched elsewhere in September a project topic for her software class, and I suggested one in November , so this topic as well must be available to other people...

A piece of software could check that the units of an equation fit together, like: a pressure equals a force per surface unit, not per volume unit.

Such an application needs a decent user interface, preferably where the inputted equation can be read permanently. But the input can be made by menus if they're fast and convenient; you don't have to interpret an equation typed as a text by the user.

You need to process +-*/^ which includes sqrt(). Users shall know by themselves what to do with sin() and others.

I want the application to know constants like µ or h or flux quantum to limit user errors, and I'd prefer to click on "Newton" instead of "force". The application can be limited to SI units, but it must know less frequent units like Jansky or Eötvös, and of course optics and radioactivity units. A user will typically launch the application in areas he's less easy with. This is where the application improves over hand-checking.

Possible refinements, not urgent:
- Other unit systems, especially CGS
- Unit systems that take c=1, h/2pi=1, µ=eps=1...

Nice small project, and it would be really useful to many people from time to time.
Marc Schaefer, aka Enthalpy
 
Technology news on Phys.org
I wrote "Newton" preferred to "Force", I see these advantage:
If the user means a force but uses kg instead of N, the software will detect it.
The software might also check if MPa are used together with mm2, not m2.

As a diagnostic, I prefer a synthetic answer like "discrepancy by one pressure", not its equivalent in kg, m and s.
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
7K
  • · Replies 20 ·
Replies
20
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 55 ·
2
Replies
55
Views
11K
Replies
29
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 38 ·
2
Replies
38
Views
9K
  • · Replies 175 ·
6
Replies
175
Views
28K