noun
algebraic expression; polynomial
In mathematics, an expression that uses letters to represent numbers, such as 2x + 3. Often contrasted with 数字式 (numerical expression).
この問題は文字式で表してください。
Please express this problem as an algebraic expression.
文字式の計算では、同じ文字の項をまとめます。
When calculating with algebraic expressions, combine like terms.
noun
literal expression; character-based expression
An expression written using characters or letters, often in contrast to numerical or symbolic notation. Can refer to a phrase or formula that retains its literal form rather than being evaluated.
プログラミングでは、文字式をそのまま出力することがあります。
In programming, literal expressions are sometimes output as-is.
数式 is a broader term for any mathematical formula, which may include both numbers and letters. 文字式 specifically emphasizes the presence of letters.
Compound of 文字 (moji, 'letter, character') and 式 (shiki, 'formula, expression'). The term is used in both mathematical and general contexts to refer to expressions involving letters or characters.