Constants
Examples
open all close allBasic Examples (3)
Here both a and b are assumed to depend on x:
Specify that a does not depend on x using the Constants option:
Scope (3)
Use TagSet to prescribe a constant:
Use SetAttributes to prescribe a constant:
For a constant f any expression f[expr] is also assumed to be constant:
See Also
Tech Notes
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Constants, Wolfram Language function, https://reference.wolfram.com/language/ref/Constants.html.
CMS
Wolfram Language. 1988. "Constants." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Constants.html.
APA
Wolfram Language. (1988). Constants. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Constants.html
BibTeX
@misc{reference.wolfram_2025_constants, author="Wolfram Research", title="{Constants}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Constants.html}", note=[Accessed: 04-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_constants, organization={Wolfram Research}, title={Constants}, year={1988}, url={https://reference.wolfram.com/language/ref/Constants.html}, note=[Accessed: 04-August-2025]}