PDL::Constants(3pm)
๐ PDL::Constants โ the manual page, but make it cute ๐
okay bestie, so this is PDL::Constants for the PDL crew โ and it's literally just the basic compile time constants. the icons. the legends. the numbers you keep retyping. ๐
โจ NAME โจ
PDL::Constants โ basic compile time constants for PDL ๐ฆ
๐ธ DESCRIPTION ๐ธ
this module is here to define compile time constant values for PDL, no cap. and the way it does it?? it uses Perl's constant pragma, because honestly it's giving simplicity and availability. iconic behavior fr fr ๐
โญ SYNOPSIS โญ
use PDL::Constants qw(PI E);
print 'PI is ' . PI . "\n";
print 'E is ' . E . "\n";
see how easy that is?? qw(PI E) and you're done, main character energy only โจ
๐ฅง PI ๐ฅง
the ratio of a circle's circumference to its diameter. yes, that ratio. the one your math teacher was obsessed with. ฯ ๐ซถ
๐ DEGRAD ๐
the number of degrees of arc per radian โ that's 180/PI bestie. so if you got radians and you want degrees, this is your girl ๐
๐ DEG2RAD ๐
the constant that converts degrees of arc into radians โ PI/180. look at the lil example:
$radians = DEG2RAD * $degrees;
multiply and slay ๐ฅ
๐ RAD2DEG ๐
the constant that converts radians into degrees of arc โ 180/PI. here's the vibe:
$degrees = RAD2DEG * $radians;
(yeah, DEGRAD and RAD2DEG are both 180/PI โ not me noticing that ๐ โ that's just how the module rolls, no cap.)
๐งฎ E ๐งฎ
the base of the natural logarithms, aka Euler's number. the e. the moment. ๐
๐ COPYRIGHT & LICENSE ๐
Copyright 2010 Chris Marshall (chm at cpan dot org).
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
fr fr, that license is real โ read it before you go redistributing, bestie ๐ซถ
and that's the whole page!! this one was rendered with perl v5.42.3, dated 2026-08-20, and honestly?? a little math constants moment was exactly what the timeline needed. stay nerdy, stay iconic ๐โจ๐
๐ฆ where this page comes from
- ubuntu stonking: pdl 1:2.106-1build1 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms