Google Answers Logo
View Question
 
Q: How to notate a function that returns the lesser of two variables ( Answered 5 out of 5 stars,   4 Comments )
Question  
Subject: How to notate a function that returns the lesser of two variables
Category: Science > Math
Asked by: adamx-ga
List Price: $10.00
Posted: 12 Oct 2003 22:32 PDT
Expires: 11 Nov 2003 21:32 PST
Question ID: 265630
I am working on coming up with a formula, but I am not sure how to
notate the following function:

function(x,y) which returns the lesser of the two values. This is
not for computer use, I just need to know how to notate this correctly
and formally.
Answer  
Subject: Re: How to notate a function that returns the lesser of two variables
Answered By: efn-ga on 12 Oct 2003 23:44 PDT
Rated:5 out of 5 stars
 
Hi adamx-ga,

The standard notation would be "min(x, y)" (as in "minimum").  The
same notation is used for either a series of arguments or a single
argument that is a set.


References:

Wolfram Research's Mathematical Functions web site
http://functions.wolfram.com/ElementaryFunctions/Min/

Page from a Mathematical Logic I course at the University of
Massachusetts
http://www-unix.oit.umass.edu/~klement/513/recursion-a.pdf

A "Review of Basic Prerequisite Mathematics" page from the University
of Toronto
http://www.cs.toronto.edu/~hector/Courses/238F00/prereq.pdf

A paper by Uriel Wittenberg on using mathematical notation in legal
language
http://www.urielw.com/mathlaw/mathlaw.htm#sec34

This notation is also used in various computer programming languages.


Search Strategy:

I suspected that this was the answer from my programming experience
and did some web searching to confirm it.

I already had the "Eric Weisstein's World of Mathematics" web site
open from answering another question, so I used the site's search
function to find the first link listed above, which I consider the
most authoritative.  The others came from Google searches with various
combinations of search terms, of which the most productive were:

minimum mathematical notation "min("

mathematical notation "minimum function"


I hope this information is helpful.

--efn-ga
adamx-ga rated this answer:5 out of 5 stars
Thank you.

Comments  
Subject: Re: How to notate a function that returns the lesser of two variables
From: xman-ga on 13 Oct 2003 22:58 PDT
 
A simple formula for finding the minimum of two numbers is:

0.5*(x+y-|x-y|)

where |x-y| is the absolute value of x-y.
Subject: Re: How to notate a function that returns the lesser of two variables
From: adamx-ga on 14 Oct 2003 04:39 PDT
 
Thank you for the formula.

In a mathematical proof, I assume it would be more appropriate to use
such a formula than to use the min function. Is that correct?

Thanks again.
Subject: I believe that min(x,y) is better
From: liranr-ga on 16 Oct 2003 07:06 PDT
 
min(x,y) is very popular notation, and is definitely "appropriate".
There is no need to complicate your forumla by using 0.5*(x+y-|x-y|)
Subject: Re: How to notate a function that returns the lesser of two variables
From: adamx-ga on 16 Oct 2003 09:06 PDT
 
Thanks for the advice.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy