Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
temp_with_pow
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; /*Вычислить, не используя функцию pow, значения функции z(x,m) = x^m sin^m(xm), для значений аргументов: x от -1.1 до 0.3 с шагом 0.2; m от 1 до 5 с шагом 1.*/ namespace Rextester { public class Program { //--------------------------------------------------------------- public static void Main(string[] args) { for (double x=-1.1; x<0.3; x=x+0.2) { for (int m=1; m<5; m++) { Console.WriteLine( "z(x,m)= {0} при х= {1}, m= {2}" ,ZXM(x, m),x,m); } } } //- s = System.Math.Pow(s, a); -------------------------------------------------------------- public static double ZXM(double x, double m) { double f = Math.Sin(x*m); double Z = Math.Pow(x,m) * Math.Pow(f,m); return Z; } } }
run
|
edit
|
history
|
help
0
length
іфи
learning1
5
count the occurrence of each distinct item in the array - Seeni
Main4-5
to get distinct of the given array with each items occurrence count._1
N
towers of hanoi
Lesson1_1_Part2.cs