@@ -140,32 +140,32 @@ is $pa->at(0), '16', 'sqrt orig value ok';
140140 is_pdl($cldsqrt ,cldouble($roots ), " csqrt_right of cldouble" );
141141}
142142
143- { # csqrt_upper
143+ { # csqrt_up
144144 my $pi =4*atan2 (1,1);
145145 my $eiO = exp (i()*sequence(8)*$pi /4);
146146 my $eiO2 = exp (i()*sequence(8)*$pi /8);
147- my $sqrt =csqrt_upper ($eiO );
148- is_pdl($sqrt , $eiO2 , " csqrt_upper of complex" );
149- my $i =csqrt_upper (-1);
150- is_pdl($i , i(), " csqrt_upper of real -1" );
147+ my $sqrt =csqrt_up ($eiO );
148+ is_pdl($sqrt , $eiO2 , " csqrt_up of complex" );
149+ my $i =csqrt_up (-1);
150+ is_pdl($i , i(), " csqrt_up of real -1" );
151151 my $squares =" -9 -4 -1 0 1 4 9" ;
152152 my $roots =" 3i 2i i 0 1 2 3" ;
153- my $lsqrt =long($squares )-> csqrt_upper ;
154- is_pdl($lsqrt , cdouble($roots ), " csqrt_upper of long" );
155- my $llsqrt =longlong($squares )-> csqrt_upper ;
156- is_pdl($llsqrt , cdouble($roots ), " csqrt_upper of longlong" );
157- my $fsqrt =float($squares )-> csqrt_upper ;
158- is_pdl($fsqrt , cfloat($roots ), " csqrt_upper of float" );
159- my $dsqrt =double($squares )-> csqrt_upper ;
160- is_pdl($dsqrt ,cdouble($roots ), " csqrt_upper of double" );
161- my $ldsqrt =ldouble($squares )-> csqrt_upper ;
162- is_pdl($ldsqrt , cldouble($roots ), " csqrt_upper of ldouble" );
163- my $cfsqrt =cfloat($squares )-> csqrt_upper ;
164- is_pdl($cfsqrt , cfloat($roots ), " csqrt_upper of cfloat" );
165- my $cdsqrt =cdouble($squares )-> csqrt_upper ;
166- is_pdl($cdsqrt ,cdouble($roots ), " csqrt_upper of cdouble" );
167- my $cldsqrt =cldouble($squares )-> csqrt_upper ;
168- is_pdl($cldsqrt ,cldouble($roots ), " csqrt_upper of cldouble" );
153+ my $lsqrt =long($squares )-> csqrt_up ;
154+ is_pdl($lsqrt , cdouble($roots ), " csqrt_up of long" );
155+ my $llsqrt =longlong($squares )-> csqrt_up ;
156+ is_pdl($llsqrt , cdouble($roots ), " csqrt_up of longlong" );
157+ my $fsqrt =float($squares )-> csqrt_up ;
158+ is_pdl($fsqrt , cfloat($roots ), " csqrt_up of float" );
159+ my $dsqrt =double($squares )-> csqrt_up ;
160+ is_pdl($dsqrt ,cdouble($roots ), " csqrt_up of double" );
161+ my $ldsqrt =ldouble($squares )-> csqrt_up ;
162+ is_pdl($ldsqrt , cldouble($roots ), " csqrt_up of ldouble" );
163+ my $cfsqrt =cfloat($squares )-> csqrt_up ;
164+ is_pdl($cfsqrt , cfloat($roots ), " csqrt_up of cfloat" );
165+ my $cdsqrt =cdouble($squares )-> csqrt_up ;
166+ is_pdl($cdsqrt ,cdouble($roots ), " csqrt_up of cdouble" );
167+ my $cldsqrt =cldouble($squares )-> csqrt_up ;
168+ is_pdl($cldsqrt ,cldouble($roots ), " csqrt_up of cldouble" );
169169}
170170
171171{ # r2C
0 commit comments