複素数の正弦 (sin)関数

Namespace: fvalgcli
Assembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)

Syntax

C#
public static FCOMPLEX fnFIE_csin(
	FCOMPLEX c
)
Visual Basic
Public Shared Function fnFIE_csin ( 
	c As FCOMPLEX
) As FCOMPLEX

Parameters

c
Type: fvalgcli..::..FCOMPLEX
複素数

Return Value

Type: FCOMPLEX
複素数のsin結果を返します。

Remarks

Examples

C# Copy imageCopy
//    $Revision: 1.1 $

using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        [FvPluginExecute]
        public void fnFIE_csin()
        {
            FCOMPLEX c1 = new FCOMPLEX();
            FCOMPLEX c2 = new FCOMPLEX();
            c1 = api.fnFIE_fcomplex(1.1, 2.2);
            c2 = api.fnFIE_csin(c1);

            Assert.IsTrue(compare(c2.real, Math.Sin(1.1)*Math.Cosh(2.2), defs.DBL_EPS), "エラーが発生しました。(c2.real={0})", c2.real);
            Assert.IsTrue(compare(c2.image, Math.Cos(1.1)*Math.Sinh(2.2), defs.DBL_EPS), "エラーが発生しました。(c2.image={0})", c2.image);

            // 結果を出力する.
            ConsoleOut.WriteFunctionName(":\t");
            Console.Write(" ...");
            ConsoleOut.IsTrue(DblEqual(c2.real, Math.Sin(1.1) * Math.Cosh(2.2)) && DblEqual(c2.image, Math.Cos(1.1) * Math.Sinh(2.2)));
        }
    }
}


Visual Basic Copy imageCopy
'    $Revision: 1.1 $

Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli

Public Partial Class FIE
    <FvPluginExecute> _
    Public Sub fnFIE_csin()
        Dim c1 As New FCOMPLEX()
        Dim c2 As New FCOMPLEX()
        c1 = api.fnFIE_fcomplex(1.1, 2.2)
        c2 = api.fnFIE_csin(c1)

        Assert.IsTrue(compare(c2.real, Math.Sin(1.1) * Math.Cosh(2.2), defs.DBL_EPS), "エラーが発生しました。(c2.real={0})", c2.real)
        Assert.IsTrue(compare(c2.image, Math.Cos(1.1) * Math.Sinh(2.2), defs.DBL_EPS), "エラーが発生しました。(c2.image={0})", c2.image)

        ' 結果を出力する.
        ConsoleOut.WriteFunctionName(":" & vbTab)
        Console.Write(" ...")
        ConsoleOut.IsTrue(DblEqual(c2.real, Math.Sin(1.1) * Math.Cosh(2.2)) AndAlso DblEqual(c2.image, Math.Cos(1.1) * Math.Sinh(2.2)))
    End Sub
End Class

See Also