<html><body><div style="font-family: 'verdana'; font-size: 12px; color: #000;">Bonsoir,<br><br></div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Avec ce code j'ai</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Can't call Math::BigFloat-&gt;_cartesian(), not a valid method at /usr/share/perl5/Math/Complex.pm line 739</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Est-ce que vous voyez une raison ?</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">Merci.</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">&nbsp;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">&nbsp;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">#!/usr/bin/perl -w</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">use strict ;<br>use warnings ;<br>use Math::Complex ;<br>use bignum ;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">&nbsp;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">my @tab = (<br>&nbsp; &nbsp; 189793243.027,<br>&nbsp; &nbsp; 189793243.077,<br>&nbsp; &nbsp; 189793243.127,<br>&nbsp; &nbsp; 189793243.177,<br>&nbsp; &nbsp; 189793243.227,<br>&nbsp; &nbsp; 189793243.277,<br>&nbsp; &nbsp; 189793243.327,<br>&nbsp; &nbsp; 189793243.377,<br>&nbsp; &nbsp; 189793243.427,<br>&nbsp; &nbsp; 189793247.027) ;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">my $length = scalar (@tab) ;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">my $sum = 0 ;<br>my $sum2 = 0 ;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">foreach my $x (@tab) {<br>&nbsp; &nbsp; $sum += $x ;<br>&nbsp; &nbsp; $sum2 += $x * $x ;<br>&nbsp; &nbsp; }</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">&nbsp;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">my ($ave, $ave2, $sqr_ave, $var) ;<br>$ave = $sum / $length ;<br>$ave2 = $ave * $ave ;<br>$sqr_ave = $sum2 / $length ;<br>$var = $sqr_ave - $ave2 ;</div>
<div style="font-family: 'verdana'; font-size: 12px; color: #000;">if ($var &gt; 0) {<br>&nbsp; &nbsp; print "A\n" ;<br>&nbsp; &nbsp; my $std = sqrt ($var) ;<br>&nbsp; &nbsp; # &nbsp; &nbsp;print "$ave, $ave2, $sqr_ave, $std\n" ;<br>&nbsp; &nbsp; }<br>else {<br>&nbsp; &nbsp; print "Issue with variance: $var\n" ;<br>&nbsp; &nbsp; }</div>
</div>
<div id="signature-container" style="background-color: #ffffff; font-size: 12px; font-family: verdana; color: #000000;">===========================================================================<br>Patrick DUPRÉ | | email: pdupre@gmx.com<br>===========================================================================</div></body></html>