This content originally appeared on DEV Community 👩💻👨💻 and was authored by Yuki Kimoto
SPVM::Math provides math functions.
use Math;
my $sin = Math->sin(Math->PI / 4);
This will be used in the Python/numpy porting to Perl like the following.
my $np = Numpy->new;
$np->sin($x);
What Is SPVM?
SPVM is a static typed language that can be used from Perl. SPVM is the essential part of the Python/numpy porting to Perl. If you haven't heard of Perl's SPVM, Please see also SPVM Language Specification.
This project really needs contributors
This project really needs contributors. I am looking for contributors.
This content originally appeared on DEV Community 👩💻👨💻 and was authored by Yuki Kimoto
Yuki Kimoto | Sciencx (2022-11-08T23:03:05+00:00) SPVM::Math – Python/numpy porting to Perl. Retrieved from https://www.scien.cx/2022/11/08/spvmmath-python-numpy-porting-to-perl/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.