DEV Community

Yuki Kimoto
Yuki Kimoto

Posted on

4 1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay