Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 User Manual

Product codes
SW006021-1
Page of 518
Library Functions
 2012 Microchip Technology Inc.
DS52053B-page 327
Return Value
A double in the range -1 to +1.
COSH, SINH, TANH 
Synopsis
#include <math.h>
 
double cosh (double f)
double sinh (double f)
double tanh (double f)
Description
These functions are the implement hyperbolic equivalents of the trigonometric 
functions; cos(), sin() and tan().
Example
#include <stdio.h>
#include <math.h>
void 
main (void)
{
    printf(“%f\n”, cosh(1.5));
    printf(“%f\n”, sinh(1.5));
    printf(“%f\n”, tanh(1.5));
}
Return Value
The function 
cosh()
 returns the hyperbolic cosine value.
The function 
sinh()
 returns the hyperbolic sine value.
The function 
tanh()
 returns the hyperbolic tangent value.
CPUTS 
Synopsis
#include <conio.h>
 
void cputs (const char * s)
Description
The 
cputs()
 function writes its argument string to the console, outputting carriage 
returns before each newline in the string. It calls putch() repeatedly. On a hosted sys-
tem 
cputs()
 differs from puts() in that it writes to the console directly, rather than 
using file I/O. In an embedded system 
cputs()
 and puts() are equivalent.