Small problem

  • #1
Hey i was wondering if someone could help me express this using standard binary operators.

[tex]f(x,y,z)=\frac{max(0, (x-y) )}{z}[/tex]

i.e. Eliminate the max() function and write it using proper math.

EDIT: max(a,b) simply chooses the largest value of the two variables.
 

Answers and Replies

  • #2
355
3
What you have there already is valid, but you can use this one if you like it better

Also, note that z cannot be 0 (the first line is just declaring the domain and codomain of f)

[tex]
f: \mathbb{R} \times \mathbb{R} \times \mathbb{R} \backslash \{0\} \to \mathbb{R}[/tex]
[tex]

f(x,y,z) = \left\{
\begin{array} {l l}
\displaystyle{\frac{x-y}{z}} & \text{if} \ x > y \\
0 & \text{else}
\right.
[/tex]
 
  • #3
hmm yeah, thats not exactly what i was looking for, apologies for lack of clarity.

Im looking for an algebraic expresion of that function, as a fraction or something similar, without the need to use if or else. If that is possible, maybe it isnt.
 
  • #4
1,074
1
How about

[tex]\frac{|x-y|+(x-y)}{2z}[/tex]
 
  • #5
ok, now i need to express that without the absolute function, or using polar or complex numbers. Could take me all week.....
 
  • #6
695
2
For the absolute value you could use [tex]\sqrt {(x - y)^2}[/tex] (I smell a computer nearby), but it looks like on overshoot to me.
 

Related Threads on Small problem

  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
3
Views
585
  • Last Post
Replies
1
Views
2K
Replies
2
Views
1K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
5
Views
647
M
Replies
6
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
2
Views
2K
Top