http://qs1969.pair.com?node_id=295576
ambrus's user image
User since: Oct 01, 2003 at 11:47 UTC (20 years ago)
Last here: Mar 28, 2024 at 13:13 UTC (3 hours ago)
Experience: 21002
Level:Abbot (19)
Writeups: 2802
Location:Budapest
User's localtime: Mar 28, 2024 at 16:59 CET
Scratchpad: View
For this user:Search nodes
Watch for posts by this user

Image: colorful houses in Stortorget, Gamla stan, Stockholm, Sweden, 2014.

My homepage doesn't have anything interesting on it.

To determine if a number is odd or even, the worst way is:

$odd=0;{local($SIG{__WARN__},$^W)=(sub{$odd++})x2;+{1..abs($n)}};

There are several completely different programming concepts called a select statement. They are

Ok, after all this rant, here's something that's actually useful to know. The formulae to solve the quadratic equation
a x^2 + b x + c = 0
are:
x_1 = -(b + sgn(b) sqrt(b^2 - 4 a c))/(2 a)
x_2 = c/(a x_1)

Perl Quiz of The Week #21 (20040805): Task scheduling. my solution discussion.

Perl Quiz of the Week Expert #22 (20040825): Word ladder. my solution discussion.

Favourite pentomino pattern: