Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cotw(3m) [hpux man page]

cot(3M) 																   cot(3M)

NAME
cot(), cotf(), cotl(), cotw(), cotq() - cotangent functions SYNOPSIS
DESCRIPTION
These functions are available only for Integrity servers. returns the cotangent of x (x specified in radians). is a version of it takes a argument and returns a result. is a version of it takes a argument and returns a result. is an version of it takes an argument and returns an result. is equivalent to on HP-UX systems. USAGE
To use these functions, compile either with the default option or with the and the options. To use or compile also with the option. To use any of these functions, make sure your program includes and link in the math library by specifying on the compiler or linker command line. RETURN VALUE
If x returns NaN and raises the invalid exception. x is NaN, returns NaN. When it raises no other exception, whether raises the inexact exception is unspecified. ERRORS
No errors are defined. SEE ALSO
atan(3M), cos(3M), ctan(3M), sin(3M), tan(3M), math(5). STANDARDS CONFORMANCE
These functions are not specified by any standard. HP Integrity Server Only cot(3M)

Check Out this Related Man Page

cot(3M) 																   cot(3M)

NAME
cot(), cotf(), cotl(), cotw(), cotq() - cotangent functions SYNOPSIS
DESCRIPTION
These functions are available only for Integrity servers. returns the cotangent of x (x specified in radians). is a version of it takes a argument and returns a result. is a version of it takes a argument and returns a result. is an version of it takes an argument and returns an result. is equivalent to on HP-UX systems. USAGE
To use these functions, compile either with the default option or with the and the options. To use or compile also with the option. To use any of these functions, make sure your program includes and link in the math library by specifying on the compiler or linker command line. RETURN VALUE
If x returns NaN and raises the invalid exception. x is NaN, returns NaN. When it raises no other exception, whether raises the inexact exception is unspecified. ERRORS
No errors are defined. SEE ALSO
atan(3M), cos(3M), ctan(3M), sin(3M), tan(3M), math(5). STANDARDS CONFORMANCE
These functions are not specified by any standard. HP Integrity Server Only cot(3M)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Piping tail to awk to parse a log file

Hello all, I've got what I'm pretty sure is a simple problem, but I just can't seem to work past it. I'm trying to use awk to pretty up a log file, and calculate a percentage. The log file looks like this: # tail strtovrUsage 20090531-18:15:45 RSreq - 24, RSsuc - 24, RSrun - 78, RSerr -... (4 Replies)
Discussion started by: DeCoTwc
4 Replies

2. Shell Programming and Scripting

calling problem in perl script

Hi , Here is my piece of code-- main(); sub main { $result = GetOptions ("LogDir=s" => \$LogDir, "Summary" => \$Summary, "Indiviual=s" => \$Individual , "Diagnostics=s" => \$Diagnostics, ... (1 Reply)
Discussion started by: namishtiwari
1 Replies

3. Shell Programming and Scripting

Date problem in perl

Hi, My script is here-- #!/usr/bin/perl no warnings "uninitialized"; use File::Copy; use File::stat; use Time::Local; use IO::Handle; use DateTime; use Getopt::Long; use File::Glob ':glob'; my $Summary; my $Individual; my $Diagnostics; my $All; (3 Replies)
Discussion started by: namishtiwari
3 Replies

4. UNIX for Dummies Questions & Answers

Efficiently Repeat Text

Hi, Often when I use echo statements in scripts I echo a line of #'s above and below. For example: echo ##### echo hello world echo ##### However, I generally have a series of about 75 #'s. For example: echo #(x 75) echo hello world echo #(X 75) While this helps to delineate... (7 Replies)
Discussion started by: msb65
7 Replies

5. UNIX for Dummies Questions & Answers

Why does fibonacci sequence script stop making sense at 92nd iteration?

So, Just for practice, I wrote a simple fibonacci sequence script in bash. (03:08:02\$ cat fib #!/usr/bin/bash ret () { echo -ne "\n" sleep .5 } a=1 b=2 echo -n $a #1 A ret echo -n $b #2 B ret (8 Replies)
Discussion started by: DeCoTwc
8 Replies

6. Shell Programming and Scripting

Problem sshing to multiple servers while in a loop

I have the following block from a script (it's not the entire script, but I'm confident it's all that is pertinent) echo "$SESSIONS"|while read ID;do ASSETID=$(echo "$ERRORS"|grep -i "$ID"|grep FX_Media_Session_Playlist::init_playlist|grep -i asset_id=|awk '{print $11}') BLADE=$(echo... (2 Replies)
Discussion started by: DeCoTwc
2 Replies

7. Shell Programming and Scripting

Rows into columns?

I have a file thats space delimited that looks something like this: Joe Smith jsmith 43234 bill1;bill2;read;read2;schedule Andy Summers asummers 11232 bill1;read Beth McConnel bmconnel 43443 read;read2;schedule;bill Susan Fowler sfowler 09332 bill1;read;schedule I need to... (8 Replies)
Discussion started by: regexnub
8 Replies

8. Shell Programming and Scripting

Would appreciate a quick second set of eyes on a script (regarding doing things in the background)

What I'm trying to do is leave a tcpdump running all the time on a server, and at the end of every day kill it and start a new one. For some reason my boss doesn't want to set this up as a cron job, so I've come up with the following.: #!/bin/bash PCAPFILE=/tmp/mgmt.$(date... (8 Replies)
Discussion started by: DeCoTwc
8 Replies

9. Shell Programming and Scripting

Can you use logical operators in a case statement (bash)?

I'm pretty sure I already know the answer to this, but I want to make sure I'm not overlooking anything. I'm working on a log monitoring script and every 10 lines I want to display a summary of events. The thing is, there are a lot of possible events, that likely won't have happened, so I only want... (0 Replies)
Discussion started by: DeCoTwc
0 Replies

10. Shell Programming and Scripting

BASH: Factorial using FOR loop not working

Hi, I am trying to run the factorial script but it’s not working. The code is mentioned below: ------------------------------------------------------------------ /home/gc> cat fact.sh #!/bin/bash # using one command line parameter factorial=1 for (( number = 1; number <= $1 ;... (3 Replies)
Discussion started by: Technext
3 Replies

11. Shell Programming and Scripting

Get values from 2 files - Complex "for loop and if" awk problem

Hi everyone, I've been thinking and trying/changing all day long the below code, maybe some awk expert could help me to fix the for loop I've thought, I think I'm very close to the correct output. file1 is: <boxes content="Grapes and Apples"> <box No.="Box MT. 53"> <quantity... (8 Replies)
Discussion started by: Ophiuchus
8 Replies

12. Shell Programming and Scripting

Find out if a script has ended or still running

I have a script which will run for sometime, i want to monitor it's progress by sending out a mail by runing a infinite loop from command line for eg. this is the script $cat script1.sh #!/usr/bin/ksh i=0 while do sleep 2 echo $i hi i=`expr $i + 1` done > testprog.out ... (5 Replies)
Discussion started by: sam05121988
5 Replies

13. Shell Programming and Scripting

How to Reverse a sentence in linux ? (bash/cshell)

hey all, If I have the given sentence. I like bobo. How could I reverse it to be : .bobo like I I am NOT talking about reversing words or characters by using rev. I am talking about reversing the whole sentence(placement of words in the given sentence). thank you. (5 Replies)
Discussion started by: eawedat
5 Replies

14. UNIX for Advanced & Expert Users

Conflicts in the output of TOP command

Hi All, In the output of TOP command in my unix system, i monitored that some process has utilization more than 100% even some process has 4000% utilisation. Please help me understand how it is possible to show more than 100% utilization. Please see the screenshot below:... (2 Replies)
Discussion started by: anand2308
2 Replies

15. Shell Programming and Scripting

awk command issue

Hi All, I have one file with below content Post1:uri Post2:urieop Post3:urtei I am trying to read each word seprated by delimiter with below command Value1=$(awk -F":" '{print $1}' $HSFILE) Value2=$(awk -F":" '{print $2}' $HSFILE) echo $Value1 echo $Value2 It is... (5 Replies)
Discussion started by: sharsour
5 Replies