News for hackers. Stuff that matters.
Re:Tips for mathematical handwriting (2007) by fujinghg on Saturday February 08, 2025 @06:04PM (#42986964)
The use of the Greek alphabet is mostly driven by convention. You get used to it. They aren't just sprayed around randomly wherever you look.

As for your code, urgh. A mathematician would carefully define what the function and operands are and the domain of each. More, and I'm vasty simplifying here as I don't have LaTeX available. I don't know what your code does so I've invented some words.

Let f(x,y) represent the rate of change of doodads where x is the number of doodads and y is the amount of doodads per gronk.

    f(x,y) = ( x^2 + y^2 ) ^ (1/2)
That's pretty tight and clearer than the code is.
Re:Tips for mathematical handwriting (2007) by card_zero on Saturday February 08, 2025 @09:44PM (#42988011)
Maybe tight is harmful.

The code is unclear because it has single-letter variables instead of names, exacerbated by being in Greek, which mathematicians reached for because they were using single-letter variables, and ran out of them, and weren't bold or imaginative enough to break from convention. Then they used up the best of the Greek letters too and moved on to things like Gothic. This is stupid.

Re:Tips for mathematical handwriting (2007) by xigoi on Sunday February 09, 2025 @02:50AM (#42989203)
How would you name the variables in the code to make it clearer?
Re:Tips for mathematical handwriting (2007) by fujinghg on Sunday February 09, 2025 @04:22AM (#42989518)
No they didn't use them because they ran out. You know nothing about mathematics clearly. There are conventions to keep it concise. Some definitions of simple things would be unreadable if you used longer names. Consider the quotient rule:

    k'(x)=(g(x)f'(x)-f(x)g'(x))/(g(x)^2
Or in your world apparently

    quotient'(expression)=(left_expression(expression)right_expression'(expression)-right_expression(expression)left_expression'(expression))/(left_expression(expression)^2
Yeah, no.

Surprisingly I've just gone through the last 30 pages of mathematical work I've done and there's a couple of π in ∫ there and that's it.

Re:Tips for mathematical handwriting (2007) by BeetleB on Sunday February 09, 2025 @11:35AM (#42991690)
I'm sorry, but you used ' to denote differentiation.

To have it his way, you'd right:

(derivative(right_expression))(expression)

and so on.

Clear as mud!

Re:Tips for mathematical handwriting (2007) by fujinghg on Sunday February 09, 2025 @11:57AM (#42991831)
Good point. Urgh.

Perhaps he's a LISP programmer and has some spare brackets floating around :-)