App-denomfind
    
    
  
  
  
view release on metacpan or search on metacpan
bin/denomfind view on Meta::CPAN
my $ymx = max ( exists $o{y} ? & yparse ( $o{y} ) : $q ) ; # y max # è¨ç®ãåé·.. ä½åº¦ãæ°ã«ãªããÆexp
my $roa = abs 1/$o{a} if exists $o{a} ; # reciprocal $o{a}
my $count = 0 ; # æ¢ç´¢ãã忝ã®åæ°
my $denom = do { $o{g} =~ s/(.+),// && $1 } || 1 ; #ãéå§ãã忝ã®å¤  $o{g} ãæ¸ãæããå ´åã«æ³¨æã
& main () ; 
END{
  exit unless $count ; # 1åãåæ¯ãæ¢ç´¢ãã¦ããªããªããããçµäºã
  exit if 0 eq ($o{2}//'') ;
  my $sum = 0 ; $sum = "$sum" + "$_" for @nums ; 
  my $bf = color 'bold faint white' ;
  print STDERR $bf . scalar @nums . " ratios are given (sum=" . color('reset bold yellow').($sum) . $bf .")." if @nums > 1 ; 
  my $ud = [ 'down to','from','up to' ] -> [ ( $o{g} <=> 0 ) + 1 ] ; # 'from' ã¯ããªãç¡çç¢çã§ãããæ£å¸¸ãªä½¿ç¨ã®æ³å®å¤ã
  $denom += $o{g} > 0 ? -1 : $o{g} < 0 ? 1 : 0 ; # 1åæ»ãã
  say STDERR BOLD FAINT " $count denominators have found $ud $denom. ($Script)" ; 
}
exit 0 ;
sub main ( ) { 
  
  my ( @nA , @nB ,@nC) ; # åºéã® éãã端A 㨠éãã端B , Cã1ã®å ´åã ããCã0ããéåºéã§ã2ãªãéåºéã
  do { my($A,$B,$C)= realInt ($_) ; push @nA,$A ; push @nB,$B ; push @nC,$C } for @nums ; 
( run in 1.456 second using v1.01-cache-2.11-cpan-c333fce770f )