/usr/share/doc/libmath-symbolic-perl/examples/run13.pl is in libmath-symbolic-perl 0.612-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/usr/bin/perl
use strict;
use warnings;
use lib '../lib/';
use Data::Dumper;
use Math::Symbolic qw/:all/;
my $exp = Math::Symbolic->parse_from_string('partial_derivative(1+2+3+4+a,a)');
print $exp->to_string('prefix') . " = " . $exp->value( a => 2 ) . "\n\n";
print "Is constant.\n" if $exp->is_constant();
print "Can be written as a sum.\n" if $exp->is_sum();
|