CLAUSEN(3pm)

πŸ“¦
version 2.085 Β· 4 versions
, in ubuntu noble

πŸ’– CLAUSEN β€” the PDL::GSLSF::CLAUSEN situation πŸ’–

okay bestie, so this is a perl manual page, specifically the one for PDL::GSLSF::CLAUSEN, and it lives in the User Contributed Perl Documentation section of the manual. it's a 3pm page. that's the vibe. let's go πŸ¦‹


✨ NAME ✨

PDL::GSLSF::CLAUSEN β€” it's the PDL interface to GSL Special Functions. that's it, that's the whole name. iconic, brief, no notes πŸ‘‘


🌸 DESCRIPTION 🌸

so basically? this whole thing is an interface to the Special Function package that lives inside the GNU Scientific Library. GSL said "here's some special functions" and PDL said "bet" and now you can call them from Perl. periodt πŸ’…


πŸ”₯ FUNCTIONS πŸ”₯

πŸ’œ gsl_sf_clausen

here's the signature, character for character, do not touch it:

Signature: (double x(); double [o]y(); double [o]e())

this is the Clausen Integral. and here's the actual definition, straight from the source, no edits:

Cl_2(x) := Integrate[-Log[2 Sin[t/2]], {t,0,x}]

so like. you integrate -Log[2 Sin[t/2]] from t equals 0 to t equals x. that's the whole lore. no cap πŸŽ€

the bad-values tea, listen up bestie: gsl_sf_clausen does not process bad values. what that means is β€” if the bad-value flag is set for any of the input ndarrays, it will set the bad-value flag of all the output ndarrays. every single one. it's not checking whether each output actually deserved it, it's just matching energy across the board 😭 so don't come for it, it told you upfront.

πŸ‘‘ AUTHOR πŸ‘‘

this file is copyright (C) 1999 Christian Pellegrin <chri@infis.univ.trieste.it> β€” All rights reserved. and before you ask: There is no warranty. none. zero. don't @ me πŸ™ˆ

you are allowed to redistribute this software / documentation, but only under certain conditions. for the details, go read the file COPYING in the PDL distribution. and β€” this part matters β€” if this file ever gets separated from the PDL distribution, the copyright notice should be included in the file. don't orphan the copyright, that's rude πŸ’€

also shoutout: the GSL SF modules were written by G. Jungman. absolute legend behavior ✨


🌈 SEE ALSO 🌈

(ngl there isn't a SEE ALSO section in this one, so just go read COPYING like the author said. iykyk 🧚)


and that's the whole page, bestie!! you now know everything this manpage knows, which is honestly kind of a slay 🫢 go integrate something cute. this was perl v5.38.2, dated 2024-04-10, and that's the CLAUSEN(3pm) sign-off β€” mwah πŸ’‹

πŸ“¦ where this page comes from