Full Discussion: awk matrix problem
awk matrix problem Post 302337444 by philstar on Friday 24th of July 2009 06:52:36 AM
07-24-2009
Thanks Igor
Great help!
That worked just fine but right now I've another problem, cuz my files for some lines the 3d element is a NaN (Not a Number) and I cant do the estatistic work using the increment without a routine that removes that elementes from my calculation
Have any more Ideas?
 philstar View Public Profile for philstar Find all posts by philstar

## need help-matrix inverse (awk)

I have few days to complete my awk homework. But I'm stucked. i hope some1 will help me out. I have to inverse n x n matrix, but I have problems with finding the determinant of the matrix. I found the algoritm, how to find a determinant of n x n matrix:...

## matrix inverse (awk)

I need to inverse a matrix given in a file. The problem is I'm stuck with writing determinant finding algoritm into code. I found this algoritm about finding determinant of nxn matrix. This is what i need: Matrices and Determinants and here: a11 a12 a13 a21 a22 a23 a31 a32 a33...

## Perl- matrix problem

A C G T - A 5 -4 -4 -4 -5 C -4 5 -4 -4 -5 G -4 -4 5 -4 -5 T -4 -4 -4 5 -5 - -5 -5 -5 -5 0 So lets say I have a matrix which looks something like (above). Its basically a scoring matrix. the numbers are...

## awk? adjacency matrix to adjacency list / correlation matrix to list

Hi everyone I am very new at awk but think that that might be the best strategy for this. I have a matrix very similar to a correlation matrix and in practical terms I need to convert it into a list containing the values from the matrix (one value per line) with the first field of the line (row...

## Summing up a matrix using awk

Hi there, If anyone can help me sorting out this small task would be great. Given a matrix like the following: 100 3 3 3 3 3 ... 200 5 5 5 5 5 ... 400 1 1 1 1 1 ... 500 8 8 8 8 8 ... 900 0 0 0 0...

## convert data into matrix- awk

is it possible to count the number of keys based on state and cell and output it as a simple matrix. Ex: cell1-state1 has 2 keys cell3-state1 has 4 keys. Note: Insert 0 if no data available. input key states cell key1 state1 cell1 key1 state2 cell1 key1 ...

## Converting to matrix-like file using AWK

Hi, Needs for statistics, doing converting Here is a sample file Input : 1|A|17,94 1|B|22,59 1|C|56,93 2|A|63,71 2|C|23,92 5|B|19,49 5|C|67,58 expecting something like that Output : 1|A|17,94|B|22,59|C|56,93 2|A|63,71|B|0|C|23,92 5|A|0|B|19,49|C|67,58

## how to rearrange a matrix with awk

Hi, every one. I have two files ,one is in matrix like this, one is a list with the same data as the matrix. AB AE AC AD AA AF SA 3 4 5 6 4 6 SC 5 7 2 8 4 3 SD 4 6 5 3 8 3 SE 45 ...

## How order a data matrix using awk?

is it possible to order the following row clusters from ascending to descending. thanx in advance input 1 2 4 0 1 2 4 0 3 3 3 3 1 5 1 0 1 5 1 0 6 0 0 0 5 1 1 1...

## How to sum the matrix using awk?

input A1 B1 A2 B2 0 0 1 1 1 0 0 1 0 1 1 0 1 1 1 1 Output label A1 B1 A2 B2 A1 2 1 1 2 B1 1 2 2 1 A2 1 2 3 2 B2 2 1 2 3 Ex: The number of times that A1 and B1 row values are both 1 should be printed as output. The last row of A1 and B1 in the input match by having 1 in both...
```CTANH(3)						   BSD Library Functions Manual 						  CTANH(3)

NAME
ctanh -- complex hyperbolic tangent function

SYNOPSIS
double complex
ctanh(double complex z);

long double complex
ctanhl(long double complex z);

float complex
ctanhf(float complex z);

DESCRIPTION
ctanh(z) computes the hyperbolic tangent of the complex floating-point number z.

For all complex floating point numbers z,

ctanh(conj(z)) = conj(ctanh(z)),
ctanh(-z) = -ctanh(z).

SPECIAL VALUES
The symmetries of ctanh() are used to abbreviate the specification of special values.

ctanh(0 + 0i) returns 0 + 0i.

ctanh(0 + inf i) returns NaN + NaN i, and raises the invalid flag.

ctanh(0 + NaN i) returns NaN + NaN i.

ctanh(x + inf i) returns NaN + NaN i, and raises the invalid flag, for finite nonzero x.

ctanh(x + NaN i) returns NaN + NaN i, for finite nonzero x.

ctanh(inf + 0i) returns 1 + 0i.

ctanh(inf + yi) returns 1 +- 0i, for finite positive y, with the sign chosen to match the sign of sin(2y).

ctanh(inf + inf i) returns 1 + 0i.

ctanh(inf + NaN i) returns 1 + 0i.

ctanh(NaN + 0i) returns NaN + 0i.

ctanh(NaN + yi) returns NaN + NaN i, for nonzero numbers y.

ctanh(NaN + NaN i) returns NaN + NaN i.

NOTES