Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  



























Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Examples  





2 Variables and evaluation  





3 Syntax versus semantics  



3.1  Syntax  





3.2  Semantics  





3.3  Formal languages and lambda calculus  







4 See also  





5 References  














Expression (mathematics)






العربية
Български
Чӑвашла
Čeština
Cymraeg
Deutsch
Eesti
Español
Esperanto
فارسی
Français

ि
Bahasa Indonesia
Íslenska
Italiano
עברית
Македонски


Nederlands


Português
Română
Русский
Scots
Slovenčina
Slovenščina
کوردی
Suomi
Svenska
ி

Türkçe
Українська
Tiếng Vit
ייִדיש

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 


















From Wikipedia, the free encyclopedia
 


Inmathematics, an expressionormathematical expression is a finite combination of symbols that is well-formed according to rules that depend on the context. Mathematical symbols can designate numbers (constants), variables, operations, functions, brackets, punctuation, and grouping to help determine order of operations and other aspects of logical syntax.

Many authors distinguish an expression from a formula, the former denoting a mathematical object, and the latter denoting a statement about mathematical objects.[citation needed] For example, is an expression, while is a formula. However, in modern mathematics, and in particular in computer algebra, formulas are viewed as expressions that can be evaluated to trueorfalse, depending on the values that are given to the variables occurring in the expressions. For example takes the value falseifx is given a value less than –1, and the value true otherwise.

Examples[edit]

The use of expressions ranges from the simple:

  (linear polynomial)
  (quadratic polynomial)
  (rational fraction)

to the complex:

Variables and evaluation[edit]

Many mathematical expressions include variables. Any variable can be classified as being either a free variable or a bound variable.

For a given combination of values for the free variables, an expression may be evaluated, although for some combinations of values of the free variables, the value of the expression may be undefined. Thus an expression represents a function whose inputs are the values assigned to the free variables and whose output is the resulting value of the expression.

For example, if the expression is evaluated with x = 10, y = 5, it evaluates to 2; this is denoted

The evaluation is undefined for y = 0.

Two expressions are said to be equivalent if, for each combination of values for the free variables, they have the same output, i.e., they represent the same function.

For example, in the expression

the variable n is bound, and the variable x is free. This expression is equivalent to the simpler expression 12x. The value for x = 3 is 36, which can be denoted

Syntax versus semantics[edit]

Syntax[edit]

An expression is a syntactic construct. It must be well-formed: the allowed operators must have the correct number of inputs in the correct places, the characters that make up these inputs must be valid, have a clear order of operations, etc. Strings of symbols that violate the rules of syntax are not well-formed and are not valid mathematical expressions.

For example, in the usual notationofarithmetic, the expression 1 + 2 × 3 is well-formed, but the following expression is not:

.

Semantics[edit]

Semantics is the study of meaning. Formal semantics is about attaching meaning to expressions.

Inalgebra, an expression may be used to designate a value, which might depend on values assigned to variables occurring in the expression. The determination of this value depends on the semantics attached to the symbols of the expression. The choice of semantics depends on the context of the expression. The same syntactic expression 1 + 2 × 3 can have different values (mathematically 7, but also 9), depending on the order of operations implied by the context (See also Operations § Calculators).

The semantic rules may declare that certain expressions do not designate any value (for instance when they involve division by 0); such expressions are said to have an undefined value, but they are well-formed expressions nonetheless. In general the meaning of expressions is not limited to designating values; for instance, an expression might designate a condition, or an equation that is to be solved, or it can be viewed as an object in its own right that can be manipulated according to certain rules. Certain expressions that designate a value simultaneously express a condition that is assumed to hold, for instance those involving the operator to designate an internal direct sum.

Formal languages and lambda calculus[edit]

Formal languages allow formalizing the concept of well-formed expressions.

In the 1930s, a new type of expressions, called lambda expressions, were introduced by Alonzo Church and Stephen Kleene for formalizing functions and their evaluation. They form the basis for lambda calculus, a formal system used in mathematical logic and the theory of programming languages.

The equivalence of two lambda expressions is undecidable. This is also the case for the expressions representing real numbers, which are built from the integers by using the arithmetical operations, the logarithm and the exponential (Richardson's theorem).

See also[edit]

  • Algebraic expression
  • Analytic expression
  • Closed-form expression
  • Combinator
  • Computer algebra expression
  • Defined and undefined
  • Equation
  • Expression (programming)
  • Formal grammar
  • Formula
  • Functional programming
  • Logical expression
  • Term (logic)
  • Well-defined expression
  • Number sentence
  • References[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Expression_(mathematics)&oldid=1215361310"

    Categories: 
    Abstract algebra
    Logical expressions
    Elementary algebra
    Hidden categories: 
    Articles needing additional references from January 2012
    All articles needing additional references
    Articles lacking in-text citations from October 2014
    All articles lacking in-text citations
    Articles with short description
    Short description matches Wikidata
    Use dmy dates from July 2020
    All articles with unsourced statements
    Articles with unsourced statements from October 2019
     



    This page was last edited on 24 March 2024, at 17:51 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki