Photonic::CharacteristicFunctions
version 0.010
use Photonic::CharacteristicFuncions qw(triangle isosceles ellipse) my $e=ellipse($N, $ff, $e); my $t=triangle($N, $r0, $deltar, $theta0); my $i=isosceles($N, $r0, $delta2, $delta3, $theta0);
Provide a few characteristic functions that may be used in Photonic calculations.
ellipse($N, $ff, $e)
returns an ellipse in a square lattice of side (2*$N+1)x(2*$N+1) with filling fraction $ff and quotient between Y and X axes $e.
triangle($N, $r0, $deltar, $theta0)
returns a smooth pear shaped triangle in a square lattice of side (2*$N+1)x(2*$N+1) with border r(theta)=$r0+$deltar*cos(3*(theta-$theta0)) in polar coordinates
isosceles($N, $r0, $delta2, $delta3, $theta0)
returns a smooth pear shaped triangle in a square lattice of side (2*$N+1)x(2*$N+1) with border =r(theta)=$r0+$delta2*cos(2*(theta-$theta0))+$delta3*cos(3*(theta-$theta0)) in polar coordinates
To install Photonic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Photonic
CPAN shell
perl -MCPAN -e shell install Photonic
For more information on module installation, please visit the detailed CPAN module installation guide.