got a problem.
i have to get A to + 20.70
but i keep getting A + 20 in my logic below.
anyone can guide me on where i go wrong?
i understand it is a double, but i do not noe how to parse it to the function so that it can read in as 20.70 instead of just 20..
i highlighted the problem part in red.. please advices
Perl:
Can anyone tell me why after I convert the hash into an array, when I print it out, it's not in the order like the hash? See below..
my %cityZip = ("Logan, AL", 35098,
"Los Angeles, CA", 90001,
"OrangeVille, IL", 61060,
"Palm Bay, FL",... (6 Replies)
Hi,
So my file looks like this:
title number
JR 2
JR 2
JR 4
JR 5
NM 5
NM 8
NM 2
NM 8
I used this line that I wrote to convert it to rows so it will look like this:
awk -F"\t" '!/^$/{a=a" "$3} END {for ( i in a) {print i,a}}' occ_output.tab > test.txt
JR 2 2 4 5
NM 5 8... (4 Replies)
hi
i wanna ask that can UNIX scripts be converted into exe files?? if so, how?? and can these scripts be implemented using c++ and using their executable...
---------- Post updated at 02:33 PM ---------- Previous update was at 10:53 AM ----------
plz anybody reply.... and ya i want to... (5 Replies)
I'm encountering an issue in printf.. it works on other servers but not this one (SunOS - Kernel Generic_118558-33)
root@server # echo $x
2.340
root@server # printf "%.1f" $x
printf: 2.340 not completely converted
2,0root@server #
anyone has an idea? i was expecting an output of "2.3" (5 Replies)
Dear Friends,
I have an input file contains lot of datas, which is like repaeated rows report.
The output file need to have column wise report, rather than row-wise.
Input File
random line 1
random line 2
random line 3
-------------------------------------
Start line 1.1 (9.9) ... (1 Reply)
Hi, I want to read lines from a file, and I'm using two methods
1 use
while read line
do
done<filename
2 use
line=`sed -n '3p' filename`
however, in both of them, I notice that the tab between fields are automatically converted to space
because I want to use awk over the... (10 Replies)
Hi Gurus,
I know this sounds weird, We have encountered many incidents where some directories on several Solaris 10 boxes, will be converted to files with the same size. for example the file below :
-rw-r--r-- 1 rkadm redknee 5027399 Apr 15 00:02 dump
This was a directory created... (5 Replies)
Is this a bash or wget issue?
GNU bash, version 4.4.0(1)-release (x86_64-slackware-linux-gnu)
GNU Wget 1.18 built on linux-gnu.
If I run wget -O file localhost/{2..4} from the command line, it will download pages 2 to 4 and concatenate them to file - which is what I want.
If I put this in a... (4 Replies)
HI Friends ,
I have a script which cp xml files from linux to other server thru ftp
my xml file contains charcters in hebrew
although , the command Binary exists in the script . the files contains Undefined Charcters after converting.
script :
ftp -p -n $HOST << EOF
user $USER $PASSWORD... (9 Replies)
Discussion started by: naamas03
9 Replies
LEARN ABOUT REDHAT
pdl::gslsf::gamma
GAMMA(3) User Contributed Perl Documentation GAMMA(3)NAME
PDL::GSLSF::GAMMA - PDL interface to GSL Special Functions
DESCRIPTION
This is an interface to the Special Function package present in the GNU Scientific Library.
SYNOPSIS FunctionsFUNCTIONS
gsl_sf_lngamma
Signature: (double x(); double [o]y(); double [o]s(); double [o]e())
Log[Gamma(x)], x not a negative integer Uses real Lanczos method. Determines the sign of Gamma[x] as well as Log[|Gamma[x]|] for x < 0. So
Gamma[x] = sgn * Exp[result_lg].
gsl_sf_gamma
Signature: (double x(); double [o]y(); double [o]e())
Gamma(x), x not a negative integer
gsl_sf_gammastar
Signature: (double x(); double [o]y(); double [o]e())
Regulated Gamma Function, x > 0 Gamma^*(x) = Gamma(x)/(Sqrt[2Pi] x^(x-1/2) exp(-x)) = (1 + 1/(12x) + ...), x->Inf
gsl_sf_gammainv
Signature: (double x(); double [o]y(); double [o]e())
1/Gamma(x)
gsl_sf_lngamma_complex
Signature: (double zr(); double zi(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Log[Gamma(z)] for z complex, z not a negative integer. Calculates: lnr = log|Gamma(z)|, arg = arg(Gamma(z)) in (-Pi, Pi]
gsl_sf_taylorcoeff
Signature: (double x(); double [o]y(); double [o]e(); int n)
x^n / n!
gsl_sf_fact
Signature: (x(); double [o]y(); double [o]e())
n!
gsl_sf_doublefact
Signature: (x(); double [o]y(); double [o]e())
n!! = n(n-2)(n-4)
gsl_sf_lnfact
Signature: (x(); double [o]y(); double [o]e())
ln n!
gsl_sf_lndoublefact
Signature: (x(); double [o]y(); double [o]e())
ln n!!
gsl_sf_lnchoose
Signature: (n(); m(); double [o]y(); double [o]e())
log(n choose m)
gsl_sf_choose
Signature: (n(); m(); double [o]y(); double [o]e())
n choose m
gsl_sf_lnpoch
Signature: (double x(); double [o]y(); double [o]s(); double [o]e(); double a)
Logarithm of Pochammer (Apell) symbol, with sign information. result = log( |(a)_x| ), sgn = sgn( (a)_x ) where (a)_x := Gamma[a +
x]/Gamma[a]
gsl_sf_poch
Signature: (double x(); double [o]y(); double [o]e(); double a)
Pochammer (Apell) symbol (a)_x := Gamma[a + x]/Gamma[x]
gsl_sf_pochrel
Signature: (double x(); double [o]y(); double [o]e(); double a)
Relative Pochammer (Apell) symbol ((a,x) - 1)/x where (a,x) = (a)_x := Gamma[a + x]/Gamma[a]
gsl_sf_gamma_inc_Q
Signature: (double x(); double [o]y(); double [o]e(); double a)
Normalized Incomplete Gamma Function Q(a,x) = 1/Gamma(a) Integral[ t^(a-1) e^(-t), {t,x,Infinity} ]
gsl_sf_gamma_inc_P
Signature: (double x(); double [o]y(); double [o]e(); double a)
Complementary Normalized Incomplete Gamma Function P(a,x) = 1/Gamma(a) Integral[ t^(a-1) e^(-t), {t,0,x} ]
gsl_sf_lnbeta
Signature: (double a(); double b(); double [o]y(); double [o]e())
Logarithm of Beta Function Log[B(a,b)]
gsl_sf_beta
Signature: (double a(); double b();double [o]y(); double [o]e())
Beta Function B(a,b)
AUTHOR
This file copyright (C) 1999 Christian Pellegrin <chri@infis.univ.trieste.it> All rights reserved. There is no warranty. You are allowed to
redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this
file is separated from the PDL distribution, the copyright notice should be included in the file.
The GSL SF modules were written by G. Jungman.
perl v5.8.0 2003-01-29 GAMMA(3)