4 ms·
Now implement this for an annualizing a forward rate on 5y5y forward. It’s a simple enough calculation. ((1+10Yrate)^10/(1+5Yrate)^5)^(1/5)
by hnews_account_1 4y ago
Now implement this for an annualizing a forward rate on 5y5y forward. It’s a simple enough calculation.
((1+10Yrate)^10/(1+5Yrate)^5)^(1/5)
- SideQuark 4y agoDon't worry - I just started looking at his code - it fails on tons of common examples, completely demonstrating what we pointed out. There's no need to even have him try to compute things past what he claimed his ever changing claims can do. I will post results soon.
- hnews_account_1 4y agoI mean, even not knowing the nuances of modern implementations of floating point arithmetic (which even I don’t fully grasp since I work very very far from the silicon on a daily basis), the whole concept of “I can reduce finance math to 4 operations” is absurd beyond reason. Like what will you do? Write a new root finding algo? Create a method that directly interfaces with the highly optimized logarithm calculating chips on modern microprocessors? Create your own new silicon for what is essentially just a special case of all modern usage that can be perfectly achieved with off the shelf hardware? This is like crypto bro level of ignorance.
- jqpabc123 4y agoIt’s a simple enough calculation. Yes, you're right --- that is relatively simple. Nothing there that can't be easily reduced to simple 4 function *integer* arithmetic. The only complication is using appropriate range and scale to meet real world requirements. By why should I bother? I've already demonstrated how to achieve the impossible.
- hnews_account_1 4y agoYou will reduce finding the 5th root of a number to a 4 function arithmetic? This should be a nice trick. Are you suggesting people do a bottom up search from 0? Or some other mind blowing mathematical property of exponents and logarithms that the top minds in the field have somehow not realized?
- jqpabc123 4y agoYou will reduce finding the 5th root of a number to a 4 function arithmetic? Yes, magic isn't it. The 8 bit integer only processor in your handheld calculator does this all the time. https://en.wikipedia.org/wiki/Newton%27s_method https://en.wikipedia.org/wiki/Newton%27s_method
- hnews_account_1 4y agoAh man, using Newton raphson to find a numerical root of a single number. Even Taylor series would’ve been an acceptable answer but this just looks like you searched “root finding” and pasted the first result here. The mistakes are just compounding the more you talk. Not to mention you now have to do your nice little penny wise adjustment on each iteration of a root finding algo to keep it in the confines of your imaginary system. I can’t even.
- jqpabc123 4y agoAh man. There is a recurring pattern here ---- first you tell me it can't be done. Then you tell me you don't like how I would do it. You handheld calculator with it's 8 bit processor is proof that almost any mathematically function can be reduced to basic 4 function integer arithmetic.
- hnews_account_1 4y agoI’m telling you you have no idea how anything works or why design choices are made in fields where you’re holding forth with an authority inversely proportional to your ignorance. Your very basic and ignorant idea of mathematics or modern finance isn’t worth my time. Especially if you think newton raphson should be any sort of standard for finding numerical roots in 2022. I shudder to think of how you’d approach a seemingly irrational exponent or something. Or how you’d incorporate something as simple as e^x. Would you use a rainbow table? The possibilities for abuse are truly endless.
- 4y ago