http://qs1969.pair.com?node_id=295576
ambrus's user image
User since: Oct 01, 2003 at 11:47 UTC (21 years ago)
Last here: Apr 17, 2024 at 10:54 UTC (19 hours ago)
Experience: 21006
Level:Abbot (19)
Writeups: 2802
Location:Budapest
User's localtime: Apr 18, 2024 at 07:59 CEST
Scratchpad: View
For this user:Search nodes

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: