Introducing Logical Tests in Equations?

  • Context: Undergrad 
  • Thread starter Thread starter ktoz
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the introduction of logical tests into mathematical equations, exploring how such constructs can be defined and utilized in various contexts. Participants examine specific examples and notations that could facilitate this integration.

Discussion Character

  • Exploratory, Technical explanation, Conceptual clarification

Main Points Raised

  • One participant suggests using a conditional operator from programming languages to modify values in equations, providing an example of its application.
  • Another participant introduces the concept of defining functions with logical conditions, such as the delta function, to represent specific values based on conditions.
  • A further contribution proposes a modified delta function that incorporates a logical test to return different values based on the input, questioning its legality in mathematical notation.
  • A response indicates that while the proposed function is valid, the notation used may not be appropriate for the intended purpose, suggesting a different symbol might be more suitable.

Areas of Agreement / Disagreement

Participants express varying opinions on the appropriateness of using certain notations and functions, indicating that there is no consensus on the best approach to introduce logical tests into equations.

Contextual Notes

There are unresolved considerations regarding the definitions and conventions of mathematical notation, particularly concerning the use of the delta function and the implications of introducing logical operators.

ktoz
Messages
170
Reaction score
12
Is there a way to introduce logical tests into equations? For example, C has a very useful operator "?:" which returns values like so:

x = (x < 1) ? 1 : x;

which could be used in equations like this to multiply by 1 for any value less than 1.

[tex]Q(x) = \prod_{j=-5}^x ((j < 1) ? 1 : j)[/tex]

Just wondering...

Ken
 
Last edited:
Physics news on Phys.org
One often defines functions, like:

[tex] \delta(x) := \left\{<br /> \begin{array}{ll}<br /> 1 \quad & x = 0 \\<br /> 0 & x \neq 0<br /> \end{array}[/tex]

I've also seen the handy little notation [P] which is 1 if P is true, and 0 if P is false. E.G. the aforementioned function could be written as [itex]\delta(x) := [x = 0][/itex]
 
Very nice!

Thanks Hurkyl

So for my example it could be defined like:

[tex] \delta(x) := \left\{<br /> \begin{array}{ll}<br /> 1 \quad & x < 1 \\<br /> x & x \geq 1<br /> \end{array}[/tex]

[tex] Q(x) = \prod_{j= -5}^x \delta(j)[/tex]

Would that be legal?
 
Last edited:
Yes, but we usually reserve [itex]\delta[/itex] for that particular function. You would probably want to use a different symbol.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
1
Views
3K
  • · Replies 29 ·
Replies
29
Views
8K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 4 ·
Replies
4
Views
1K