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 calc
- {
- class Program
- {
- static void Main(string[] args)
- {
- double progress = Math.Sqrt(2);
- double temp = progress;
- double multiplier = 2;
- while (true)
- {
- temp = Math.Sqrt(Math.Pow(0.5 * progress, 2) + Math.Pow(1 - Math.Sqrt(1 - Math.Pow((0.5 * progress), 2)), 2));
- //wait for key before continuing
- multiplier = multiplier * 2;
- Console.WriteLine(temp*multiplier);
- Console.WriteLine("");
- Console.WriteLine(((temp*multiplier)/Math.PI)*100 + "%");
- Console.WriteLine("");
- Console.WriteLine(Math.PI);
- _ = Console.ReadKey();
- progress = temp;
- Console.Clear();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement