Wikipedia:Reference desk/Archives/Mathematics/2008 October 15

Mathematics desk
< October 14 << Sep | October | Nov >> October 16 >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


October 15

edit

The "bound"/"clamp"/? function

edit

The common function   seems to go by the names bound and clamp. The simple ghit test suggests the former name, but that's polluted by such things as Python's bound methods. I don't mean for this to be a poll, but is there a (most-) standard convention of which I'm not aware? --Tardis (talk) 01:34, 15 October 2008 (UTC)[reply]

Clamp is very commonly used especially in electronics for exactly what you want. I've not seen bound used in the same sense. Dmcq (talk) 08:08, 15 October 2008 (UTC)[reply]

conjugate harmonic function

edit

Does anybody know how to fund the conjugate harmonic function of this function:

 

I've been trying to solve it using maxima, but taking the x derivative and then integrating with respect to y and vice versa just leaves me with a horrible mess. is there some sort of trick involved?

I don't know of a simple way of doing these things, but if you replace y-2 with y' in the first part you might notice something about the result of differentiating to x. In the second two terms just leave y and something similar happens. Might give an idea about what the result is when integrating to y. Just do the two parts separately and add up. Dmcq (talk) 08:26, 15 October 2008 (UTC)[reply]
Thanks, I've just tried doing it with pencil and paper and it's actually completely trivial. which makes me wonder why the maxima CAS was giving me such a strange answer (containing erfs and imaginary numbers!). I'm usually very lazy when it comes to differentiation and integration and my first resort is to use a CAS, but in this case it looks like the CAS can't do it properly. That's weird, but at least in future I'll know that you can't always rely on the computer for this sort of thing. —Preceding unsigned comment added by Damian Eldridge (talkcontribs) 08:46, 15 October 2008 (UTC)[reply]
Aargh, these whipper-snappers nowadays. Their brains will atrophy, using the computer to bring them pizzas :) I can see where the erf (error function) comes from, brute force can lead to things which are hard to simplify. My pleasure. Dmcq (talk)

Well, it's even simpler. The difficulty is mostly psychological, indeed. Let see. This is clearly an harmonic function from a textbook, not from the real mathematical world, as the simultaneous presence of the exponential and polynomial part indicates (in real life they would fight). Textbooks are supposed to be friendly, and didactic. So, what do they want to teach you? Most likely, a definition: v is conjugate to u iff u+iv is holomorphic. Can you figure out the whole thing, that is, the holomorphic? The polynomial is clearly half of a cube:

 .

The exponential looks more difficult, but we are at the zoo, and it will not bite. So let's replace y-2 with y, as suggested by Dmcq, just to see it better (indeed, whoever invented this exercise, made a substitution of a   with a   as a last touch, because he thought it was too easy otherwise)... now,   and   are real and imaginary part of  ;   is the real part of  ... remember, it has to be easy... Can you see it? why not   ?

Yes, of course:

 ,

and you can see the u and v parts (and don't forget to replace y-2 where it was). You see? It's easy. Remember Kung Fu Panda. There is no secret ingredient. Just be confident! PMajer (talk) 21:10, 16 October 2008 (UTC)[reply]

Simple problem re Future Value

edit

I just want to confirm that I've got the approach re future value correct.

If I want to calculate the future value of $1,000 with interest of 8% p.a. in 400 days, is it correct to calculate it like this?

 

Or do I have to convert the 8% p.a. rate to a rate over 400 days? —Preceding unsigned comment added by 203.3.186.10 (talk) 03:19, 15 October 2008 (UTC)[reply]

Your future value expression is correct as long as:
  1. The figure of 8% p.a. is an effective interest rate, not a nominal interest rate.
  2. The interest is being compounded either continuously or daily. Gandalf61 (talk) 09:21, 15 October 2008 (UTC)[reply]

Hmmmm. I'm not so sure because consider the exponent being 730/365 and then the result is the same as if you only earned simple interest (not compound) and the result is the same as 1.08*1.08 which is compound interest but only one period per year, thus you are only earning simple interest, but with 1 compounding point at the end of the 365th day. I have a ba in fin, and its confusing because we're expected to equally learn several different types of interest rates and conversions between them. The main thing which is lacking from your formula is e and/or ln, that's usually an indicator Interest rates by convention are always nominally quoted, usually twice per year, or yearly. So if the 8% is an effective interest rate, then I'd have to dig up my old book, but Gandalf is very smart, so he's probably correct. Sentriclecub (talk) 21:36, 16 October 2008 (UTC)[reply]

No, 1.08*1.08 is compound interest over 2 years compounded yearly. That's still compound interest, it's just not continuously compounded. If you want the equivalent (ie. same end result) as continuously compounded interest you need to reduce the interest rate from 0.08 to log(1.08)=0.077. Then if you compound continuously, an amount, A, after 2 years becomes   which is exactly what you had before. Basically, it doesn't make any difference how often you compound as long as you adjust the interest rate accordingly (there are exceptions when you're doing complicated things but for money in a bank account it's that simple). In the UK most rates you see advertised are annualised effective rates (ie. the rate that it would be if compounded yearly, we call that APR, but I think APR means something different in the US). In maths, you switch between discretely and continuously compounded interest rates depending on what you're doing with them and have to keep track - it's simple enough, (1+r)t means discrete and ert means continuous, it's just important to remember that it isn't the same r! --Tango (talk) 21:51, 16 October 2008 (UTC)[reply]
In the US, the usual presentation is a pair: the APR is the rate you would get per year for simple interest (which I think is what you said held for the UK), and then there's the APY which is what you really get with whatever compounding is in effect.
I think it helps the discrete/continuous comparison if you make the compounding period T explicit:  , and if we do the usual (but confusing) thing and treat the rate as an expression of simple interest, we have  . If, instead, we have daily compounding and a "yearly" given rate, it's easy to do   and get the effective yearly rate as   (for various values of 365). --Tardis (talk) 01:35, 17 October 2008 (UTC)[reply]
In the UK, APR is the rate with compounding, so what you call APY. I don't see the point in reporting the rate with simple interest, it's a meaningless number (it seems meaningful if you pay the interest every period, but then you're adding cash flows at different times without discounting which means it's still meaningless). --Tango (talk) 15:31, 17 October 2008 (UTC)[reply]

Thanks everyone 203.3.186.10 (talk) 07:12, 17 October 2008 (UTC)[reply]