Hacker News new | past | comments | ask | show | jobs | submit | keithalewis's comments login

I work hard to be lazy.

There are Pythagorean triples (a, b, c) for which there do not exist integers m, n with a = m^2 - n^2, b = 2mn, c = m^2 + n^2.

But all such triples are non-primitive. I.e. they are of the form (ka, kb, kc) with k>1. So all Pythagorean triples can be generated as a scaled primitive triple (a,b,c) that is generated by Euclid's formula from m,n.

Learned something new today. For other interested: https://en.wikipedia.org/wiki/Pythagorean_triple#Generating_...

This seems to make the mistake of identifying a vector with a stream.

In this implementation streams are not vectors nor lists. They are ordered hash maps.

Just pointing out what the theoretical documentation says. A stream should have operations for empty, current, and next. You don't want implementation details leaking into the abstract model.

HN spamtroturfing one of their own startups? I'm shocked, shocked!


I wrote something to make it simple to embed C++ in Excel. It is useful for pushing business logic into platform independent code that can be integrated into back end production systems. One bonus is the original spreadsheet has unit tests vetted by the business users. https://github.com/xlladdins/xll


Control-backtick toggles formulas. No need for VB(A).


Ah, I didn't know that. So I tried it.

It does display formulas, but by hiding the values. What my macro does is allow the formula to be displayed permanently in its own column.

Granted I'm one user out of many, and have switched to programming for any kind of quantitative work. but I'm still quite supportive of Excel.


Do you realize it toggles data and formula display? That ought to be fine for anyone with more short term memory than a gnat.


Do you have an example of a convertible bond?


Not yet, I will work to add this soon.


Try composing two distributions.


Try composing f : A -> B with g : A -> B, for A ≠ B. Still, f and g are functions. So, what exactly is your point?


What is a delta function at a composed with a delta function at b <> a?


Attention Everyone!!! We have just found our killer AI app!!! Just imagine, you no longer need to talk to friends, family, or waste time on social networks to get a list of books you are never going to read!!!

I can't wait to start buying tulip bulbs for pennies on the dollar.


Doctor, it hurts when I do that.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: