# C1.Win.C1Chart.FunctionBase.CalcFunction

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Chart_FunctionBase_CalcFunction_" data-uid="C1.Win.C1Chart.FunctionBase.CalcFunction*">CalcFunction Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Chart_FunctionBase_CalcFunction_" data-uid="C1.Win.C1Chart.FunctionBase.CalcFunction*"></a>
<h4 id="C1_Win_C1Chart_FunctionBase_CalcFunction_System_Double_C1_Win_C1Chart_ISimpleFunction_System_Object_C1_Win_C1Chart_CalculateFunctionEventHandler_" data-uid="C1.Win.C1Chart.FunctionBase.CalcFunction(System.Double,C1.Win.C1Chart.ISimpleFunction,System.Object,C1.Win.C1Chart.CalculateFunctionEventHandler)">CalcFunction(double, ISimpleFunction, object, CalculateFunctionEventHandler)</h4>
<div class="markdown level1 summary"><p>Calculates the value of the function at the specified parameter value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected double CalcFunction(double x, ISimpleFunction user, object compiled, CalculateFunctionEventHandler evh)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function CalcFunction(x As Double, user As ISimpleFunction, compiled As Object, evh As CalculateFunctionEventHandler) As Double</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The X coordinate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.C1Chart.ISimpleFunction.html">ISimpleFunction</a></td>
      <td><span class="parametername">user</span></td>
      <td><p>Provides an interface for defining a simple one-variable function of the form y(x) = f(x).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">compiled</span></td>
      <td><p>The object for calculation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.C1Chart.CalculateFunctionEventHandler.html">CalculateFunctionEventHandler</a></td>
      <td><span class="parametername">evh</span></td>
      <td><p>The <a class="xref" href="C1.Win.C1Chart.CalculateFunctionEventHandler.html">CalculateFunctionEventHandler</a> which stores event arguments.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><p>The calculated value of the function.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_C1Chart_FunctionBase_CalcFunction_" data-uid="C1.Win.C1Chart.FunctionBase.CalcFunction*"></a>
<h4 id="C1_Win_C1Chart_FunctionBase_CalcFunction_System_Double___C1_Win_C1Chart_ISimpleFunction_System_Object_C1_Win_C1Chart_CalculateFunctionEventHandler_" data-uid="C1.Win.C1Chart.FunctionBase.CalcFunction(System.Double[],C1.Win.C1Chart.ISimpleFunction,System.Object,C1.Win.C1Chart.CalculateFunctionEventHandler)">CalcFunction(double[], ISimpleFunction, object, CalculateFunctionEventHandler)</h4>
<div class="markdown level1 summary"><p>Calculates the value of the function at the specified parameter value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected double[] CalcFunction(double[] x, ISimpleFunction user, object compiled, CalculateFunctionEventHandler evh)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function CalcFunction(x As Double(), user As ISimpleFunction, compiled As Object, evh As CalculateFunctionEventHandler) As Double()</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</td>
      <td><span class="parametername">x</span></td>
      <td><p>The array of X coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.C1Chart.ISimpleFunction.html">ISimpleFunction</a></td>
      <td><span class="parametername">user</span></td>
      <td><p>Provides an interface for defining a simple one-variable function of the form y(x) = f(x).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">compiled</span></td>
      <td><p>The object for calculation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.C1Chart.CalculateFunctionEventHandler.html">CalculateFunctionEventHandler</a></td>
      <td><span class="parametername">evh</span></td>
      <td><p>The <a class="xref" href="C1.Win.C1Chart.CalculateFunctionEventHandler.html">CalculateFunctionEventHandler</a> which stores event arguments.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</td>
      <td><p>The calculated array of values of the function.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
