Movatterモバイル変換


[0]ホーム

URL:


PHP 8.5.0 Alpha 2 available for testing
    sinh »
    « round

    sin

    (PHP 4, PHP 5, PHP 7, PHP 8)

    sinSine

    Description

    sin(float$num):float

    sin() returns the sine of thenum parameter. Thenum parameter is in radians.

    Parameters

    num

    A value in radians

    Return Values

    The sine ofnum

    Examples

    Example #1sin() example

    <?php
    // Precision depends on your precision directive
    echosin(deg2rad(60)),PHP_EOL;// 0.866025403 ...
    echosin(60),PHP_EOL;// -0.304810621 ...
    ?>

    See Also

    Found A Problem?

    Learn How To Improve This PageSubmit a Pull RequestReport a Bug
    add a note

    User Contributed Notes

    There are no user contributed notes for this page.
    To Top
    and to navigate •Enter to select •Esc to close
    PressEnter without selection to search using Google

    [8]ページ先頭

    ©2009-2025 Movatter.jp