Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Z_non_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
game 1.0.3
Animal generator (Under construction!)
Stack as a queue
GetDataFromSQLGroups
1213
PYRAMIDPATTERN
test save
stack with stack Data type
Binary Search Tree
Swap numbers without the third variable using the XOR operator