9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi!
I'm trying to figure out how to find words with X number of doubles, only. I'm searching a dictionary, (one word per line). For instance, if you want to find words containing only one pair of double letters, you could do something like this:
egrep '(.)\1' wordlist.txt |egrep -v '(.)\1.*(.)\2'... (3 Replies)
Discussion started by: sudon't
3 Replies
2. UNIX for Dummies Questions & Answers
Hi!
I have concatenated two files which are wordlists, i.e., one word per line. The new file contains some doubles, but I cannot use sort and uniq as I need to keep the sort order that it is already in, which is not alphabetical, and uniq only compares adjacent lines, and the doubles are not on... (15 Replies)
Discussion started by: sudon't
15 Replies
3. Shell Programming and Scripting
I am trying to add a line to a BASH shell script to print out a large variable length table on a web page. I am very new to this obviously, but I tried this with awk and it prints out every line twice. What I am doing wrong?
echo "1^2^3%4^5^6%7^8^9%" | awk 'BEGIN { RS="%"; FS="^"; } {for (i =... (6 Replies)
Discussion started by: awknewb123
6 Replies
4. Solaris
Hi,
I'm trying to tar on Solaris 9 a directory containing very long
filename, so tar exit with the error (filename is greater than 100). Is
there a way to bypass this limit (I can't realy control filename long)?
Regards (3 Replies)
Discussion started by: ncjbdwqer
3 Replies
5. UNIX Desktop Questions & Answers
to determine if two two doubles are equal, we check to see if
their absolute difference is very close to zero. . .if two numbers
are less than .00001 apart, theyre equal.
keep a count field in each record (as you did in p5).
once the list is complete, ask the user to see if an element
is on... (2 Replies)
Discussion started by: rickym2626
2 Replies
6. Solaris
Hello,
When I try to run a shell script, It throws an error:
$ ./SQLExecute.csh
Word too long
$ echo $CLASSPATH
/u02/installs/calypso/calypsorel90000/jars/
$ echo $PATH... (7 Replies)
Discussion started by: panchpan
7 Replies
7. UNIX for Dummies Questions & Answers
I'm getting a "line too long" error when I try to vi a particular file. I really just need to view the contents as I don't have to change anything. Any suggestions?? I already tried to cat but it didnt work........:( (7 Replies)
Discussion started by: shorty
7 Replies
8. Post Here to Contact Site Administrators and Moderators
Greetings,
I'm relatively new-comer to these forums and have a Q to the mods. Just wondering what's the policy regarding the long running threads where they tend to go say over 30 posts and they become "troubleshooting" threads rather than being "educational" and/or "hinting" threads?
... (4 Replies)
Discussion started by: vgersh99
4 Replies
9. Programming
I have a program written in C on HP-UX 11i. The program is as
below ...
long long a;
a = 12345678987654321;
printf ("%lld",a);
I compile the code using cc compiler on HP-UX using
-Ae +DD32 option as i want it to create a 32-bit binary.
But the... (1 Reply)
Discussion started by: Shobhit
1 Replies
atan2(3M) Mathematical Library Functions atan2(3M)
NAME
atan2, atan2f, atan2l - arc tangent function
SYNOPSIS
cc [ flag... ] file... -lm [ library... ]
#include <math.h>
double atan2(double y, double x);
float atan2f(float y, float x);
long double atan2l(long double y, long double x);
DESCRIPTION
These functions compute the principal value of the arc tangent of y/x, using the signs of both arguments to determine the quadrant of the
return value.
RETURN VALUES
Upon successful completion, these functions return the arc tangent of y/x in the range [ -, ] radians.
If y is +-0 and x is < 0, +- is returned.
If y is +-0 and x is > 0, +-0 is returned.
If y is < 0 and x is +-0, -/2 is returned.
If y is > 0 and x is +-0, /2 is returned.
If x is 0, a pole error does not occur.
If either x or y is NaN, a NaN is returned.
If y is +-0 and x is -0, +- is returned.
If y is +-0 and x is +0, +-0 is returned.
For finite values of +-y > 0, if x is -Inf, +- is returned.
For finite values of +-y > 0, if x is +Inf, +-0 is returned.
For finite values of x, if y is +-Inf, +-/2 is returned.
If y is +-Inf and x is -Inf, +-3/4 is returned.
If y is +-Inf and x is +Inf, +-/4 is returned.
If both arguments are 0, a domain error does not occur.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
atan(3M), isnan(3M), math.h(3HEAD)tan(3M), attributes(5), standards(5)
SunOS 5.10 1 Sep 2002 atan2(3M)