DEV Community

Yuki Kimoto
Yuki Kimoto

Posted on

SPVM::Math - Python/numpy porting to Perl

SPVM::Math provides math functions.

use Math;

my $sin = Math->sin(Math->PI / 4);
Enter fullscreen mode Exit fullscreen mode

This will be used in the Python/numpy porting to Perl like the following.

my $np = Numpy->new;

$np->sin($x);
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (0)