Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Recursive 3
//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; namespace Rextester { public class Program { public static readonly Random rand = new Random(); public static void Main(string[] args) { //Your code goes here //Recursive(4,.53); /* double a = 362.3; int b = (int) a/10%10; Console.WriteLine(b); */ Console.WriteLine(Random()); /*double x=2; for (int i=0; i<100; i++){ x=x*1.2; Console.WriteLine(x); }*/ } /*public static double Recursive(double r, double x) { double x2=x; double x3; for (int i=0; i<rand.Next(150,200); i++) { x=x2; x2=r*x*(1-x); return x2; } return } public static double Recur( double r, double x) { }*/ public static long Geo(long x, int times){ int n=2; if (times<=1){ return x; } return Geo(x*n, times-1); } public static double Geo(double x, int times){ double r=4; if (times<=1){ return r*x*(1-x); } return Geo(r*x*(1-x), times-1); } public static double Random(){ int count = rand.Next(100,300); double x = rand.NextDouble(); return Geo(x,count); } } }
run
|
edit
|
history
|
help
0
Fibonacci recursion
Enumerable
Const
test device logger
binary search find minimum
my sql
Boyer Moore String Search
Hexagon Tringle
PERSHENDETJE
First code