FormulaData

FormulaData[name]

gives the equations for the formula name.

FormulaData[name,{var1quantity1,var2quantity2,}]

solves or simplifies equations using the specified values quantityi for the variables vari.

FormulaData[name,"property"]

gives the value of the specified property for the formula name.

Details

  • FormulaData returns algebraic equations for formulas using standard names such as "OhmsLaw" or "LawOfSines".
  • The variables returned by FormulaData are expressed with the QuantityVariable wrapper.
  • Specified values for vari can be entered as a List or Association.
  • When specifying a list of values to insert into an equation, an input variable value can be specified with var->value; var can be a string or QuantityVariable, and value can be a number, symbol, or Quantity.
  • If the number of unspecified variables equals the number of equations, FormulaData will attempt to solve for the remaining variables for a real-valued solution. Otherwise it will replace all specified variables with the supplied values.
  • FormulaData[] returns a list of all available formulas.
  • FormulaData["Properties"] returns all available properties for formulas.
  • Properties include:
  • "Formula"equations for the formula
    "QuantityVariableDimensions"list of base dimensions for all variables
    "QuantityVariableNames"English names for all variables
    "QuantityVariablePhysicalQuantities"physical quantities for all variables
    "QuantityVariables"list of all variables in the formula
    "QuantityVariableTable"details on all variables for the formula
  • "Association" can be specified as a second or third argument to alter output to Association. FormulaData[name, "Association"] returns the equation or equations as an Association with the left-hand side of the equations as keys. FormulaData[name,{var1quantity1,var2quantity2,},"Association"] returns the solution to the formula or simplified equations as an Association. FormulaData[name,"property","Association"] returns an Association instead of a List.

Examples

open allclose all

Basic Examples  (7)

Find the equation for a formula:

Include values to solve for formula variables:

Formula names can be found with FormulaLookup:

Formula values can be inserted using free-form input ():

Some formulas have multiple equations:

Formulas with multiple equations will be solved for all variables if possible:

Some formula standard names are specified as lists, such as the different forms of Planck's radiation law:

Scope  (11)

Usage  (7)

Find all formulas used by FormulaData:

Find all properties supported by FormulaData:

Get all instances of QuantityVariable in the equations:

Find the physical quantities for the equation variables:

Learn the variable names for the equation:

Find the dimensions of physical quantities for the equation:

Display all the properties of the formula variables:

Variable Specification  (4)

Formula variables can be specified with QuantityVariable:

The symbol component of QuantityVariable can also be used:

Variables are valid inputs for a formula variable:

Pure numbers are also valid:

Association can be used to specify formula variables:

Applications  (1)

Formula equations can be used in subsequent calculations:

Integrate over temperature:

Plot the behavior of the equation:

Possible Issues  (3)

Use FormulaLookup to find the names of formulas:

Input quantities should have appropriate dimensions:

If there are fewer unspecified variables than equations in the formula, then the system is overdetermined:

Neat Examples  (2)

Common Physical Constants  (1)

Find all formulas that contain both the speed of light and Planck's constant as parameters:

Explore Fundamental Physics Formulas  (1)

Select all formulas that contain Planck's constant, speed of light, or gravitational constant as a parameter:

Construct a network of formulas based on related physical quantities:

Introduced in 2014
 (10.0)
 |
Updated in 2019
 (12.0)