Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace NumericalIntegration
- {
- internal class Functions
- {
- public static Double a = 0;
- public static Double b = 1;
- /// <summary>
- /// Первообразная от f(x)
- /// </summary>
- /// <param name="x">Значение х</param>
- public static Double F(Double x)
- {
- var coeff = (Double)2 / (3 * Math.Sqrt(5));
- var power = (Double)3 / 2;
- return coeff * Math.Pow(x, power);
- }
- /// <summary>
- /// Функция f(x)
- /// </summary>
- /// <param name="x">Значение х</param>
- public static Double f(Double x)
- {
- return Math.Sqrt(x / 5);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement