<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T19:23:04+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h?rev=1708040905&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/math?rev=1708040898&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/math/random?rev=1708042323&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/math/round?rev=1365581526&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/data_types/float?rev=1708041851&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/atan?rev=1708041935&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/exp?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/tanh?rev=1708041936&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/floor?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/fmod?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/tan?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/math/max?rev=1708041861&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/pow?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/atan2?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/sinh?rev=1708041936&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/sqrt?rev=1708041936&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/log10?rev=1708041935&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/ldexp?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/fabs?rev=1708041935&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/log?rev=1708041936&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino?rev=1515738548&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/cos?rev=1708041935&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/math/min?rev=1708041860&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/ceil?rev=1708041936&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/math/map?rev=1708041860&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/asin?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/arithmetic_operators/arithmetic?rev=1360952127&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/modf?rev=1708041936&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/cosh?rev=1708041935&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/acos?rev=1708041937&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/sin?rev=1708041935&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/math/constrain?rev=1708041861&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/math.h/frexp?rev=1708041936&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c?rev=1515738548&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/pow?rev=1366075845&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/sinh?rev=1708041879&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/log10?rev=1708041879&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bitwise_operators/bitshift?rev=1708041855&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bitwise_operators/bitwiseand?rev=1708041855&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/time/millis?rev=1708041862&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/ldexp?rev=1708041880&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/cos?rev=1708041878&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/math/pow?rev=1708041861&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/data_types/unsignedint?rev=1708041850&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/cosh?rev=1708041878&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/tanh?rev=1708041879&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/math/abs?rev=1708041860&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/math/sqrt?rev=1708041860&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/atan?rev=1708041878&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/asin?rev=1708041880&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/ceil?rev=1708041879&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/data_types/int?rev=1708041852&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/constants/integerconstants?rev=1708041856&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/modf?rev=1708041879&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/tan?rev=1708041880&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/log?rev=1708041879&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/sin?rev=1708041878&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/sqrt?rev=1708041879&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/string.h/strerror?rev=1361058590&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/exp?rev=1708041880&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/fmod?rev=1708041880&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/fabs?rev=1708041878&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/floor?rev=1708041880&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/frexp?rev=1708041879&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/atan2?rev=1708041880&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/cmath/acos?rev=1708041880&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/c/math.h?rev=1708040905&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:25+02:00</dc:date>
        <title>math.h</title>
        <link>https://code-reference.com/c/math.h?rev=1708040905&amp;do=diff</link>
        <description>Mathematical functions
 Library                 Description              acos        computes arc cosine                 asin        computes arc sine                 atan        computes arc tangent                 atan2        computes arc tangent, using signs to determine quadrants                 ceil        returns the nearest integer not less than the given value                 cos        computes cosine                 cosh        computes hyperbolic cosine                 exp        ret…</description>
    </item>
    <item rdf:about="https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:06+02:00</dc:date>
        <title>lua:codea:stargenerator:star.lua</title>
        <link>https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&amp;do=diff</link>
        <description>Star = class()

function Star:init(init)
    -- you can accept and set parameters here
    self.mx = 500
    self.my = 400
    if init == true then
        self.x = math.random(self.mx-10,self.mx+10)
        self.y = math.random(self.my-10,self.my+10)
        self.size = math.random(1,3)
    else
        self.x = math.random(1,1200)
        self.y = math.random(1,1200)
        self.size = math.random(1,6)
    end
    self.xspeed = math.random(1,10)
    self.yspeed = math.random(1,10)
    
    se…</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/math?rev=1708040898&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:18+02:00</dc:date>
        <title>math Overview</title>
        <link>https://code-reference.com/arduino/math?rev=1708040898&amp;do=diff</link>
        <description>math Overview
 Name                 Description              abs abs  constrain constrain  map map  max max  min min  pow pow  sqrt sqrt 
automatically generated overview ...

Change this page if you have a better description</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/math/random?rev=1708042323&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:03+02:00</dc:date>
        <title>Math.random()</title>
        <link>https://code-reference.com/java/lang/math/random?rev=1708042323&amp;do=diff</link>
        <description>Math.random() double;


generate a 'double' random number

example of Math.random in java


package codereferececomjava;

public class CodeRefereceComJava {

 
    public static void main(String[] args) {
    
        double randomDigit;
        randomDigit = Math.random();
        System.out.println(randomDigit); // random number as double
        System.out.println(randomDigit*1000+1); //double random number between 1-1000
        System.out.println((int)(randomDigit*1000+1)); //double random …</description>
    </item>
    <item rdf:about="https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-24T04:03:54+02:00</dc:date>
        <title>lua:codea:stargenerator:main.lua</title>
        <link>https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff</link>
        <description>-- stars
function setup()   
    displayMode(FULLSCREEN)
    createstars()
    checkagain = false
end

function createstars()
    stars = {}
    for i = 1,175 do 
        --rx = math.random(1,1200)
       -- ry= math.random(1,800)
        s= Star(true)
        --u = { x=rx, y=ry}
      table.insert(stars,s)
    end   
    for i = 1,50 do 
        --rx = math.random(1,1200)
       -- ry= math.random(1,800)
        s= Star(false)
        --u = { x=rx, y=ry}
      table.insert(stars,s)
    end  
  …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/math/round?rev=1365581526&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:12:06+02:00</dc:date>
        <title>Math.round</title>
        <link>https://code-reference.com/java/lang/math/round?rev=1365581526&amp;do=diff</link>
        <description>rounds a number 

example of round in java



package roundanumber;
import java.lang.Math;

public class Roundanumber {


    public static void main(String[] args) {
        // TODO code application logic here
        
        double number, number2;
        number = 33.384422;
        number2 = 33.898823;
    
    System.out.println(&quot;number: &quot; + Math.round(number));
    System.out.println(&quot;number2: &quot; + Math.round(number2));
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-15T09:30:44+02:00</dc:date>
        <title>format</title>
        <link>https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff</link>
        <description>format args to the format string format and write the result to the stream


format(String format, Object... args);

return value: stream

 sign  Description  0 if the place is not busy they prints a 0	# if the place is not busy they prints nothing	. decimal separator Separates and decimal places.	, Groups the numbers (a group is as large as the distance from ”,” to ”.”).	; Delimiter. To the left of the pattern is positive, the right for negative numbers.	- The default character for the negative…</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/data_types/float?rev=1708041851&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:11+02:00</dc:date>
        <title>float</title>
        <link>https://code-reference.com/arduino/data_types/float?rev=1708041851&amp;do=diff</link>
        <description>Description

Datatype for floating-point numbers, a number that has a decimal point. Floating-point numbers are often used to approximate analog and continuous values because they have greater resolution than integers. Floating-point numbers can be as large as 3.4028235E+38 and as low as -3.4028235E+38. They are stored as 32 bits (4 bytes) of information.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-27T18:35:18+02:00</dc:date>
        <title>Scanner()</title>
        <link>https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff</link>
        <description>Reads input from a Keyboard, or a Device

CODE_SIGN_IDENTITY

--verify

--file-list

--display -r- Terminal.app

example Scanner in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        double currency, amount, exchangeRate;
        String currencyName, newCurrency;
                
       …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/atan?rev=1708041935&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:35+02:00</dc:date>
        <title>atan</title>
        <link>https://code-reference.com/c/math.h/atan?rev=1708041935&amp;do=diff</link>
        <description>atan


    double atan(double);


calculates acustangens from a number

C Sourcecode Example

compile in linux with: gcc atan.c -o atan -lm -Wall


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ){
    double a=0.2;
    printf(&quot;atan from %f is %f\n&quot;, a, atan(a) * 90 / 3.17);
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/exp?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>exp</title>
        <link>https://code-reference.com/c/math.h/exp?rev=1708041937&amp;do=diff</link>
        <description>double exp(double);


calculates the exponential value of a number

C Sourcecode Example

compile in linux with: gcc exp.c -o exp -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
double x;
x = 9.0;
printf(&quot;the exponential value of %f is %f\n&quot;, x, exp(x));
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/tanh?rev=1708041936&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:36+02:00</dc:date>
        <title>tanh</title>
        <link>https://code-reference.com/c/math.h/tanh?rev=1708041936&amp;do=diff</link>
        <description>tanh


    double tanh(double);


Returns hyperbolic tangent of a radian angle x. 

C Sourcecode Example

compile with tanh.c -o tanh -lm


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main( void )
{
    double x;
    x = log(42);
    printf (&quot;hyperbolic tangent of 42 is %lf\n&quot;, tanh (x) );
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/floor?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>floor</title>
        <link>https://code-reference.com/c/math.h/floor?rev=1708041937&amp;do=diff</link>
        <description>floor


    double floor(double);


rounding down a number

C Sourcecode Example

compile in linux with: gcc floor.c -o floor -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
double y,x;
x = 4.2;
y = 9.9;
printf(&quot;floor of %f is %f\n&quot;, x, floor(x) );
printf(&quot;floor of %f is %f\n &quot;,y , floor(y) );
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/fmod?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>fmod</title>
        <link>https://code-reference.com/c/math.h/fmod?rev=1708041937&amp;do=diff</link>
        <description>fmod


    double fmod(double, double );


returns the remainder of a statement

C Sourcecode Example

compile in linux with: gcc fmod.c -o fmod -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
double y,x;
x = 9;
y = 4.2;
printf(&quot;rest of %f / %f is %f\n&quot;, x, y, fmod(x,y) );
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/tan?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>tan</title>
        <link>https://code-reference.com/c/math.h/tan?rev=1708041937&amp;do=diff</link>
        <description>tan


    double tan(double);


Returns the tangent of a radian angle x. 

C Sourcecode Example

compile with gcc tan.c -o tan -lm


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main( void )
{
    double x;
    x = 42;
    
    printf (&quot;tan of %lf° is %lf\n&quot;, x, tan (x*3.1415/180));
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/math/max?rev=1708041861&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:21+02:00</dc:date>
        <title>max(x, y)</title>
        <link>https://code-reference.com/arduino/math/max?rev=1708041861&amp;do=diff</link>
        <description>Description

Calculates the maximum of two numbers.

Parameters

x: the first number, any data type

y: the second number, any data type

Returns

The larger of the two parameter values.

Example

sensVal = max(senVal, 20); // assigns sensVal to the larger of sensVal or 20
                           // (effectively ensuring that it is at least 20)</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/pow?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>pow</title>
        <link>https://code-reference.com/c/math.h/pow?rev=1708041937&amp;do=diff</link>
        <description>pow


    double pow(double, double );


pow() returns base raised to the exp power.

C Sourcecode Example

compile in linux with: gcc pow.c -o pow -lm -Wall


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main( void )
{
    printf (&quot;4 to the 2th power is: %lf\n &quot;, pow(4, 2));
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/atan2?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>atan2</title>
        <link>https://code-reference.com/c/math.h/atan2?rev=1708041937&amp;do=diff</link>
        <description>atan2


    double atan2(double , double );


calculates arctangent from 2 numbers

C Sourcecode Example

compile in linux with: gcc atan2.c -o atan2 -lm -Wall


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ){
    double a=1.2, b=-2.6;
    printf(&quot;atan2 from %f and %f is %f\n&quot;, a, b, atan2(a, b) * 90 / 3.17);
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/sinh?rev=1708041936&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:36+02:00</dc:date>
        <title>sinh</title>
        <link>https://code-reference.com/c/math.h/sinh?rev=1708041936&amp;do=diff</link>
        <description>sinh


     double sinh(double);


return the hyperbolic sinus

C Sourcecode Example

compile in linux with: gcc sinh.c -o sinh -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main (void)
{
  double x;
  x = log(4.2);
  printf (&quot;hyperbolic sine of %lf is %lf\n&quot;, x, sinh(x) );
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/sqrt?rev=1708041936&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:36+02:00</dc:date>
        <title>sqrt</title>
        <link>https://code-reference.com/c/math.h/sqrt?rev=1708041936&amp;do=diff</link>
        <description>sqrt


    double sqrt(double);


returns the square root

C Sourcecode Example

compile in linux with: gcc sqrt.c -o sqrt -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void )
{
  printf (&quot;square root from 4.2 is %f\n&quot;, sqrt (4.2) );
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/log10?rev=1708041935&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:35+02:00</dc:date>
        <title>log10</title>
        <link>https://code-reference.com/c/math.h/log10?rev=1708041935&amp;do=diff</link>
        <description>double log10(double);


base-10 logarithm of a number

C Sourcecode Example

compile in linux with: gcc log10.c -o log10 -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
double x;
x = log10(42000);
printf(&quot;The log10 of 42000 is %f\n&quot;,x);
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/ldexp?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>ldexp</title>
        <link>https://code-reference.com/c/math.h/ldexp?rev=1708041937&amp;do=diff</link>
        <description>ldexp


    double ldexp(double , int exp);


Returns x times 2 raised to n

C Sourcecode Example

compile in linux with: gcc ldexp.c -o ldexp -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{

  printf (&quot;4.2 raised to 2 is %f\n&quot;, ldexp(4.2, 2));
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/fabs?rev=1708041935&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:35+02:00</dc:date>
        <title>fabs</title>
        <link>https://code-reference.com/c/math.h/fabs?rev=1708041935&amp;do=diff</link>
        <description>fabs


    double fabs(double);


calculates the absolute number of a given value

C Sourcecode Example

compile in linux with: gcc fabs.c -o fabs -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
double y,x;
x = 4.2422;
y = -3284.2;
printf(&quot;the fabs of 4.2422 is %f\n&quot;, fabs(x) );
printf(&quot;and the fabs of -3284.2 is %f\n &quot;, fabs(y) );
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/log?rev=1708041936&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:36+02:00</dc:date>
        <title>log</title>
        <link>https://code-reference.com/c/math.h/log?rev=1708041936&amp;do=diff</link>
        <description>log


    double log(double);


Natural logarithm of a number

C Sourcecode Example

compile in linux with: gcc log.c -o log -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
double x;
x = log(1.3);
printf(&quot;The log is %f\n&quot;,x);
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino?rev=1515738548&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:08+02:00</dc:date>
        <title>Arduino Reference Overview</title>
        <link>https://code-reference.com/arduino?rev=1515738548&amp;do=diff</link>
        <description>Arduino Reference Overview
 Name          Description   advanced io Overview advanced I/O  analog io Overview analog I/O  arithmetic operators Overview arithmetic operators  bits and bytes Overview bits and bytes  bitwise operators Overview bitwise operators  boolean operators Overview boolean operators  communication Overview communication  constants Overview constants  control structures Overview control structures  conversion Overview conversion  data types Overview data types  digital io Ove…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/cos?rev=1708041935&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:35+02:00</dc:date>
        <title>cos</title>
        <link>https://code-reference.com/c/math.h/cos?rev=1708041935&amp;do=diff</link>
        <description>double cos(double);


calculates the cosine of a degree

C Sourcecode Example

compile in linux with: gcc cos.c -o cos -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
double x;
x = 90;
printf(&quot;the cosine of %f ° is %f\n&quot;, x, cos(x*3.14159/42));
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/math/min?rev=1708041860&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:20+02:00</dc:date>
        <title>min(x, y)</title>
        <link>https://code-reference.com/arduino/math/min?rev=1708041860&amp;do=diff</link>
        <description>Description

Calculates the minimum of two numbers.

Parameters

x: the first number, any data type

y: the second number, any data type

Returns

The smaller of the two numbers.

Examples

sensVal = min(sensVal, 100); // assigns sensVal to the smaller of sensVal or 100
                             // ensuring that it never gets above 100.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/ceil?rev=1708041936&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:36+02:00</dc:date>
        <title>ceil</title>
        <link>https://code-reference.com/c/math.h/ceil?rev=1708041936&amp;do=diff</link>
        <description>double ceil(double);


rounding up floating point

C Sourcecode Example

compile in linux with: gcc ceil.c -o ceil -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ()
{
  printf (&quot;ceil from 4.2 is %f\n&quot;, ceil (4.2) );
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/math/map?rev=1708041860&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:20+02:00</dc:date>
        <title>map(value, fromLow, fromHigh, toLow, toHigh)</title>
        <link>https://code-reference.com/arduino/math/map?rev=1708041860&amp;do=diff</link>
        <description>Description

Re-maps a number from one range to another.  That is, a value of fromLow would get mapped to toLow, a value of fromHigh to toHigh, values in-between to values in-between, etc.

Does not constrain values to within the range, because out-of-range values are sometimes intended and useful. The constrain() function may be used either before or after this function, if limits to the ranges are desired.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/asin?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>asin</title>
        <link>https://code-reference.com/c/math.h/asin?rev=1708041937&amp;do=diff</link>
        <description>double asin(double);


calculates arcsine from a number

C Sourcecode Example

compile in linux with: gcc asin.c -o asin -lm -Wall


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ){
    double a=0.2;
    printf(&quot;asin from %f is %f\n&quot;, a, asin(a) * 90 / 3.17);
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/arithmetic_operators/arithmetic?rev=1360952127&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-15T19:15:27+02:00</dc:date>
        <title>Addition, Subtraction, Multiplication, &amp; Division</title>
        <link>https://code-reference.com/arduino/arithmetic_operators/arithmetic?rev=1360952127&amp;do=diff</link>
        <description>Description

These operators return the sum, difference, product, or quotient (respectively) of the two operands.  The operation is conducted using the data type of the operands, so, for example, 9 / 4 gives 2 since 9 and 4 are ints.  This also means that the operation can overflow if the result is larger than that which can be stored in the data type (e.g. adding 1 to an int with the value 32,767 gives -32,768).  If the operands are of different types, the “larger” type is used for the calculat…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/modf?rev=1708041936&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:36+02:00</dc:date>
        <title>modf</title>
        <link>https://code-reference.com/c/math.h/modf?rev=1708041936&amp;do=diff</link>
        <description>modf


    double modf(double , double *int);


Splits completely paid off and returns the fractional part of x.

C Sourcecode Example

compile in linux with: gcc modf.c -o modf -lm -Wall


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void )
{
  double i, result;
  result=modf(4.2, &amp;i);
  printf (&quot;%lf + %lf = %lf \n&quot;, i, result, 4.2 );
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/cosh?rev=1708041935&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:35+02:00</dc:date>
        <title>cosh</title>
        <link>https://code-reference.com/c/math.h/cosh?rev=1708041935&amp;do=diff</link>
        <description>double cosh(double);


calculates the hyperbolic cosine of a number

C Sourcecode Example

compile in linux with: gcc cosh.c -o cosh -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
double x;
x = log(1.3);
printf(&quot;The log is %f\n&quot;,x);
printf(&quot;the hyperbolic cosine of %f is %f\n&quot;, x, cosh(x));
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/acos?rev=1708041937&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:37+02:00</dc:date>
        <title>acos</title>
        <link>https://code-reference.com/c/math.h/acos?rev=1708041937&amp;do=diff</link>
        <description>acos


    double acos(double);

 calculates arccosine
Linux: compile with gcc acos.c -o acos -lm -Wall   

C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ){
    double a=0.2;
    printf(&quot;acos from %f is %f\n&quot;, a, acos(a) * 90 / 3.17);
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/sin?rev=1708041935&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:35+02:00</dc:date>
        <title>sin</title>
        <link>https://code-reference.com/c/math.h/sin?rev=1708041935&amp;do=diff</link>
        <description>sin


     double sin(double);


return the sinus

C Sourcecode Example

compile in linux with: gcc sin.c -o sin -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main (void)
{
  double x;
  x = 42.0;
  printf (&quot;sine of %lf° is %lf\n&quot;, x, sin(x*3.1415/80) );
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/math/constrain?rev=1708041861&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:21+02:00</dc:date>
        <title>constrain(x, a, b)</title>
        <link>https://code-reference.com/arduino/math/constrain?rev=1708041861&amp;do=diff</link>
        <description>Description

Constrains a number to be within a range.

Parameters

x: the number to constrain, all data types

a: the lower end of the range, all data types

b: the upper end of the range, all data types

Returns

x: if x is between a and b

a: if x is less than a</description>
    </item>
    <item rdf:about="https://code-reference.com/c/math.h/frexp?rev=1708041936&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:36+02:00</dc:date>
        <title>frexp</title>
        <link>https://code-reference.com/c/math.h/frexp?rev=1708041936&amp;do=diff</link>
        <description>frexp


    double frexp(double);


Mantissa m. in *n is the exponent.

C Sourcecode Example

compile in linux with: gcc frexp.c -o frexp -lm -Wall

     
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;math.h&gt; /* including math library */

int main ( void ) 
{
  double x;
  int n;

  x = 42.0;
  printf (&quot;%lf * 2^%d = %f\n&quot;, frexp (x , &amp;n), n, x);
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c?rev=1515738548&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:08+02:00</dc:date>
        <title>C Library</title>
        <link>https://code-reference.com/c?rev=1515738548&amp;do=diff</link>
        <description>Online reference for the C (standard) library

C is an imperative programming language that the computer scientist Dennis Ritchie developed in the early 1970s at Bell Laboratories for System Programming of the operating system Unix.

C Library Overview
 Library                 Description              assert.h Overview        assertion                 ctype.h         character classification  math.h          mathematical functions    mysql Overview   MySQL implementation      stdarg.h Overview  …</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/pow?rev=1366075845&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-16T03:30:45+02:00</dc:date>
        <title>pow</title>
        <link>https://code-reference.com/cpp/cmath/pow?rev=1366075845&amp;do=diff</link>
        <description>float  pow(float  base, float  exponent);
    double pow(double base, double exponent);
    double pow(double base, int    exponent);


pow() returns base raised to the exp power.

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main( void )
{
    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;4 raised to the 2nd power is: &quot; &lt;&lt; pow(4, 2) &lt;&lt; endl;

    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/sinh?rev=1708041879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:39+02:00</dc:date>
        <title>sinh</title>
        <link>https://code-reference.com/cpp/cmath/sinh?rev=1708041879&amp;do=diff</link>
        <description>sinh


     double sinh(double);


return the hyperbolic sinus

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main (void)
{
  double x;
  x = log(4.2);

  //cout.setf(ios::fixed, ios::floatfield);
  cout.precision(8);

  cout &lt;&lt; &quot;hyperbolic sine of &quot; &lt;&lt; x &lt;&lt; &quot; is &quot; &lt;&lt; sinh(x) &lt;&lt; endl;
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/log10?rev=1708041879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:39+02:00</dc:date>
        <title>log10</title>
        <link>https://code-reference.com/cpp/cmath/log10?rev=1708041879&amp;do=diff</link>
        <description>log10


    double log10(double);


base-10 logarithm of a number

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void )
{
    double x;
    x = log10(42000);
    
    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;The log10 of 42000 is &quot; &lt;&lt; x &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bitwise_operators/bitshift?rev=1708041855&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:15+02:00</dc:date>
        <title>bitshift left ()</title>
        <link>https://code-reference.com/arduino/bitwise_operators/bitshift?rev=1708041855&amp;do=diff</link>
        <description>Description

From The Bitmath Tutorial  in The Playground

There are two bit shift operators in C++: the left shift operator &lt;&lt; and the right shift operator &gt;&gt;. These operators cause the bits in the left operand to be shifted left or right by the number of positions specified by the right operand.\

More on bitwise math may be found  here.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bitwise_operators/bitwiseand?rev=1708041855&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:15+02:00</dc:date>
        <title>Bitwise AND (&amp;), Bitwise OR (|),  Bitwise XOR (^)</title>
        <link>https://code-reference.com/arduino/bitwise_operators/bitwiseand?rev=1708041855&amp;do=diff</link>
        <description>Bitwise AND (&amp;)

The bitwise operators perform their calculations at the bit level of variables. They help solve a wide range of common programming problems. Much of the material below is from an excellent tutorial on bitwise math wihch may be found  here.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/time/millis?rev=1708041862&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:22+02:00</dc:date>
        <title>millis()</title>
        <link>https://code-reference.com/arduino/time/millis?rev=1708041862&amp;do=diff</link>
        <description>Description

Returns the number of milliseconds since the Arduino board began running the current program.  This number will overflow (go back to zero), after approximately 50 days.

Parameters

None

Returns

Number of milliseconds since the program started (unsigned long)</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/ldexp?rev=1708041880&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:40+02:00</dc:date>
        <title>ldexp</title>
        <link>https://code-reference.com/cpp/cmath/ldexp?rev=1708041880&amp;do=diff</link>
        <description>ldexp


    double ldexp(double , int exp);


Returns x times 2 raised to n

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{

  //cout.setf(ios::fixed, ios::floatfield);
  cout.precision(8);

  cout &lt;&lt; &quot;4.2 raised to 2 is &quot; &lt;&lt;  ldexp(4.2, 2) &lt;&lt; endl;
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/cos?rev=1708041878&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:38+02:00</dc:date>
        <title>cos</title>
        <link>https://code-reference.com/cpp/cmath/cos?rev=1708041878&amp;do=diff</link>
        <description>double cos(double);


calculates the cosine of a degree

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{
    double x, res;
    x = 90;
    res = cos(x*3.14159/42);
    
    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;the cosine of &quot; &lt;&lt; x &lt;&lt; &quot; ° is &quot; &lt;&lt; res &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/math/pow?rev=1708041861&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:21+02:00</dc:date>
        <title>pow(base, exponent)</title>
        <link>https://code-reference.com/arduino/math/pow?rev=1708041861&amp;do=diff</link>
        <description>Description

Calculates the value of a number raised to a power. Pow() can be used to raise a number to a fractional power. This is useful for generating exponential mapping of values or curves.

Parameters

base: the number (float)

exponent: the power to which the base is raised (float)</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/data_types/unsignedint?rev=1708041850&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:10+02:00</dc:date>
        <title>unsigned int</title>
        <link>https://code-reference.com/arduino/data_types/unsignedint?rev=1708041850&amp;do=diff</link>
        <description>Description

On the Uno and other ATMEGA based boards, unsigned ints (unsigned integers) are the same as ints in that they store a 2 byte value. Instead of storing negative numbers however they only store positive values, yielding a useful range of 0 to 65,535 (2^16) - 1).</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/cosh?rev=1708041878&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:38+02:00</dc:date>
        <title>cosh</title>
        <link>https://code-reference.com/cpp/cmath/cosh?rev=1708041878&amp;do=diff</link>
        <description>double cosh(double);


calculates the hyperbolic cosine of a number

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{
    double x,res;
    x = log(1.3);
    res = cosh(x);
    
    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);   
    
    cout &lt;&lt; &quot;The log is &quot; &lt;&lt; x &lt;&lt; endl;
    cout &lt;&lt; &quot;the hyperbolic cosine of &quot; &lt;&lt; x &lt;&lt; &quot; is &quot; &lt;&lt; res &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/tanh?rev=1708041879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:39+02:00</dc:date>
        <title>tanh</title>
        <link>https://code-reference.com/cpp/cmath/tanh?rev=1708041879&amp;do=diff</link>
        <description>tanh


    double tanh(double);


Returns hyperbolic tangent of a radian angle x. 

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main( void )
{
    double x;
    x = log(42);

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;hyperbolic tangent of 42 is &quot; &lt;&lt; tanh (x) &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/math/abs?rev=1708041860&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:20+02:00</dc:date>
        <title>abs(x)</title>
        <link>https://code-reference.com/arduino/math/abs?rev=1708041860&amp;do=diff</link>
        <description>Description

Computes the absolute value of a number.

Parameters

x: the number

Returns

x: if x is greater than or equal to 0.

-x: if x is less than 0.

Warning

Because of the way the abs() function is implemented, avoid using other functions inside the brackets, it may lead to incorrect results.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/math/sqrt?rev=1708041860&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:20+02:00</dc:date>
        <title>sqrt(x)</title>
        <link>https://code-reference.com/arduino/math/sqrt?rev=1708041860&amp;do=diff</link>
        <description>Description

Calculates the square root of a number.

Parameters

x: the number, any data type

Returns

double, the number's square root.

See also

* pow(base, exponent)
* sq

Source: arduino.cc</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/atan?rev=1708041878&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:38+02:00</dc:date>
        <title>atan</title>
        <link>https://code-reference.com/cpp/cmath/atan?rev=1708041878&amp;do=diff</link>
        <description>double atan(double);


calculates acustangens from a number

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ){
    double a=0.2, res=0;

    res = atan(a) * 90 / 3.17;

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;atan from &quot; &lt;&lt; a &lt;&lt; &quot; is &quot; &lt;&lt; res &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/asin?rev=1708041880&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:40+02:00</dc:date>
        <title>asin</title>
        <link>https://code-reference.com/cpp/cmath/asin?rev=1708041880&amp;do=diff</link>
        <description>double asin(double);


calculates arcsine from a number

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ){
    double a=0.2, res=0;

    res = asin(a) * 90 / 3.17;

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;asin from &quot; &lt;&lt; a &lt;&lt; &quot; is &quot; &lt;&lt; res &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/ceil?rev=1708041879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:39+02:00</dc:date>
        <title>ceil</title>
        <link>https://code-reference.com/cpp/cmath/ceil?rev=1708041879&amp;do=diff</link>
        <description>double ceil(double);


rounding up floating point

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void )
{
  double res = 0;
  res = ceil (4.2);
 
  //cout.setf(ios::fixed, ios::floatfield);
  cout.precision(8);

  cout &lt;&lt; &quot;ceil from 4.2 is &quot; &lt;&lt; res &lt;&lt; endl;
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/data_types/int?rev=1708041852&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:12+02:00</dc:date>
        <title>int</title>
        <link>https://code-reference.com/arduino/data_types/int?rev=1708041852&amp;do=diff</link>
        <description>Description

Integers are your primary data-type for number storage. 

On the Arduino Uno (and other ATMega based boards) an int stores a 16-bit (2-byte) value. This yields a range of -32,768 to 32,767 (minimum value of -2^15 and a maximum value of (2^15) - 1).</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/constants/integerconstants?rev=1708041856&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:16+02:00</dc:date>
        <title>Integer Constants</title>
        <link>https://code-reference.com/arduino/constants/integerconstants?rev=1708041856&amp;do=diff</link>
        <description>Integer constants are numbers used directly in a sketch, like 123.  By default, these numbers are treated as int's but you can change this with the U and L modifiers (see below).

Normally, integer constants are treated as base 10 (decimal) integers, but special notation (formatters) may be used to enter numbers in other bases.</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/modf?rev=1708041879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:39+02:00</dc:date>
        <title>modf</title>
        <link>https://code-reference.com/cpp/cmath/modf?rev=1708041879&amp;do=diff</link>
        <description>modf


    double modf(double , double *int);


Splits completely paid off and returns the fractional part of x.

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void )
{
  double i, result;
  result=modf(4.2, &amp;i);
  
  //cout.setf(ios::fixed, ios::floatfield);
  cout.precision(8);

  cout &lt;&lt; i &lt;&lt; &quot; + &quot; &lt;&lt; result &lt;&lt; &quot; = 4.2 &quot; &lt;&lt; endl;
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/tan?rev=1708041880&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:40+02:00</dc:date>
        <title>tan</title>
        <link>https://code-reference.com/cpp/cmath/tan?rev=1708041880&amp;do=diff</link>
        <description>tan


    double tan(double);


Returns the tangent of a radian angle x. 

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main( void )
{
    double x;
    x = 42;
    
    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;tan of &quot; &lt;&lt; x &lt;&lt; &quot;° is &quot; &lt;&lt; tan (x*3.1415/180) &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/log?rev=1708041879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:39+02:00</dc:date>
        <title>log</title>
        <link>https://code-reference.com/cpp/cmath/log?rev=1708041879&amp;do=diff</link>
        <description>log


    double log(double);


Natural logarithm of a number

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{
    double x;
    x = log(1.3);

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;The log is &quot; &lt;&lt; x &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/sin?rev=1708041878&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:38+02:00</dc:date>
        <title>sin</title>
        <link>https://code-reference.com/cpp/cmath/sin?rev=1708041878&amp;do=diff</link>
        <description>sin


     double sin(double);


return the sinus

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main (void)
{
  double x;
  x = 42.0;

  //cout.setf(ios::fixed, ios::floatfield);
  cout.precision(8);

  cout &lt;&lt; &quot;sine of &quot; &lt;&lt; x &lt;&lt; &quot;° is &quot; &lt;&lt; sin(x*3.1415/80) &lt;&lt; endl;;
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/sqrt?rev=1708041879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:39+02:00</dc:date>
        <title>sqrt</title>
        <link>https://code-reference.com/cpp/cmath/sqrt?rev=1708041879&amp;do=diff</link>
        <description>sqrt


    double sqrt(double);


returns the square root

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void )
{

  //cout.setf(ios::fixed, ios::floatfield);
  cout.precision(8);

  cout &lt;&lt; &quot;square root from 4.2 is &quot; &lt;&lt; sqrt (4.2) &lt;&lt; endl;
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/string.h/strerror?rev=1361058590&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-17T00:49:50+02:00</dc:date>
        <title>strerror</title>
        <link>https://code-reference.com/c/string.h/strerror?rev=1361058590&amp;do=diff</link>
        <description>#include &lt;string.h&gt;
//#include &lt;windows.h&gt; /* uncomment this for Windows */
char *strerror(int errnum);


Description

returns a pointer to a string that describes the error code passed in the argument errnum

compile this example with the compiler flag -lm</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/exp?rev=1708041880&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:40+02:00</dc:date>
        <title>exp</title>
        <link>https://code-reference.com/cpp/cmath/exp?rev=1708041880&amp;do=diff</link>
        <description>double exp(double);


calculates the exponential value of a number

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{
    double x;
    x = 9.0;

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;the exponential value of &quot; &lt;&lt; x &lt;&lt; &quot; is &quot; &lt;&lt; exp(x) &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/fmod?rev=1708041880&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:40+02:00</dc:date>
        <title>fmod</title>
        <link>https://code-reference.com/cpp/cmath/fmod?rev=1708041880&amp;do=diff</link>
        <description>fmod


    double fmod(double, double );


returns the remainder of a statement

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{
    double y,x;
    x = 9;
    y = 4.2;

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;rest of &quot; &lt;&lt; x &lt;&lt; &quot; / &quot; &lt;&lt; y &lt;&lt; &quot; is &quot; &lt;&lt; fmod(x,y) &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/fabs?rev=1708041878&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:38+02:00</dc:date>
        <title>fabs</title>
        <link>https://code-reference.com/cpp/cmath/fabs?rev=1708041878&amp;do=diff</link>
        <description>fabs


    double fabs(double);


calculates the absolute number of a given value

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{
    double y,x;
    x = 4.2422;
    y = -3284.2;

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;the fabs of 4.2422 is &quot; &lt;&lt; fabs(x) &lt;&lt; endl;
    cout &lt;&lt; &quot;and the fabs of -3284.2 is &quot; &lt;&lt;  fabs(y) &lt;&lt; endl;
    r…</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/floor?rev=1708041880&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:40+02:00</dc:date>
        <title>floor</title>
        <link>https://code-reference.com/cpp/cmath/floor?rev=1708041880&amp;do=diff</link>
        <description>floor


    double floor(double);


rounding down a number

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{
    double y,x;
    x = 4.2;
    y = 9.9;

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;floor of &quot; &lt;&lt; x &lt;&lt; &quot; is &quot; &lt;&lt; floor(x) &lt;&lt; endl;
    cout &lt;&lt; &quot;floor of &quot; &lt;&lt; y &lt;&lt; &quot; is &quot; &lt;&lt; floor(y) &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/frexp?rev=1708041879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:39+02:00</dc:date>
        <title>frexp</title>
        <link>https://code-reference.com/cpp/cmath/frexp?rev=1708041879&amp;do=diff</link>
        <description>frexp


    double frexp(double);


Mantissa m. in *n is the exponent.

cpp Sourcecode Example

     
#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ) 
{
  double x;
  int n;

  x = 42.0;
  
  //cout.setf(ios::fixed, ios::floatfield);
  cout.precision(8);

  cout &lt;&lt; frexp (x, &amp;n) &lt;&lt; &quot; * 2^&quot; &lt;&lt; n &lt;&lt; &quot; = &quot; &lt;&lt; x &lt;&lt; endl;
  return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/atan2?rev=1708041880&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:40+02:00</dc:date>
        <title>atan2</title>
        <link>https://code-reference.com/cpp/cmath/atan2?rev=1708041880&amp;do=diff</link>
        <description>double atan2(double , double );


calculates arctangent from 2 numbers

cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ){
    double a=1.2, b=-2.6, res;
    res = atan2(a, b) * 90 / 3.17;
    
    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(7);

    cout &lt;&lt; &quot;atan2 from &quot; &lt;&lt; a &lt;&lt; &quot; and &quot; &lt;&lt; b &lt;&lt; &quot; is &quot;  &lt;&lt; res &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/cmath/acos?rev=1708041880&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:40+02:00</dc:date>
        <title>acos</title>
        <link>https://code-reference.com/cpp/cmath/acos?rev=1708041880&amp;do=diff</link>
        <description>double acos(double);

 calculates arccosine
cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */
#include &lt;cmath&gt; /* including math library */

using namespace std;
int main ( void ){
    double a=0.2, res=0;
    res = acos(a) * 90 / 3.17;

    //cout.setf(ios::fixed, ios::floatfield);
    cout.precision(8);

    cout &lt;&lt; &quot;acos from &quot; &lt;&lt; a &lt;&lt; &quot; is &quot; &lt;&lt; res &lt;&lt; endl;
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:13+02:00</dc:date>
        <title>const keyword</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff</link>
        <description>The const keyword stands for constant. It is a variable qualifier that modifies the behavior of the variable, making a variable ”read-only”. This means that the variable can be used just as any other variable of its type, but its value cannot be changed. You will get a compiler error if you try to assign a value to a const variable.</description>
    </item>
</rdf:RDF>
