Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I am not completely sure whether this question belongs on mathematics.SE but I figured to give it a shot:

I have a function which mathematically looks like this: $f(x)=\max(A,B\cos x)$

This will result in a cosine with for $B/A>1$ a cut-off section. My question is more related to aesthetics than mathematics: the notation I use now looks a bit too much like program code in my opinion. Is there a way to represent the bound in $f(x)$ without using the $\max$-notation?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Assuming that you're working with real numbers $A,B,x,$ we can rewrite it as $$f(x)=\frac12\bigl(A+B\cos x+|A-B\cos x|\bigr).$$

Visually, we're starting at the midpoint--$\frac12(A+B\cos x)$--and adding half of the difference between them--$\frac12|A-B\cos x|$. If you want to translate $\min$ of two real valued expressions, you'll do the same sort of thing, but subtract half the distance instead.

share|improve this answer
    
Awesome that is exactly what I was looking for –  Michiel Mar 3 '13 at 17:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.