is an option for Diff and related functions that specifies how the input expressions should be preprocessed.


DiffInputFunction
is an option for Diff and related functions that specifies how the input expressions should be preprocessed.
Details

- Diff[a,b,DiffInputFunctionfunc] is equivalent to Diff[func[a],func[b]].
- The default setting DiffInputFunctionIdentity will attempt to diff the original expressions.
- In addition to any arbitrary function, DiffInputFunction can take the following special settings:
-
"InputForm" equivalent to ToString[#,InputForm]& "StandardForm" equivalent to ExpressionCell[#]& "TraditionalForm" equivalent to ExpressionCell[TraditionalForm[#]]&
Examples
open all close allBasic Examples (4)
Compare the input form strings of two arbitrary expressions:
Compare the StandardForm rendering of two expressions:
Properties & Relations (1)
Compare strings returned by GenomeData:
See Also
History
Text
Wolfram Research (2024), DiffInputFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/DiffInputFunction.html.
CMS
Wolfram Language. 2024. "DiffInputFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DiffInputFunction.html.
APA
Wolfram Language. (2024). DiffInputFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiffInputFunction.html
BibTeX
@misc{reference.wolfram_2025_diffinputfunction, author="Wolfram Research", title="{DiffInputFunction}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/DiffInputFunction.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_diffinputfunction, organization={Wolfram Research}, title={DiffInputFunction}, year={2024}, url={https://reference.wolfram.com/language/ref/DiffInputFunction.html}, note=[Accessed: 15-August-2025]}