Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- Console.WriteLine("Podaj x0:");
- double xp = Convert.ToDouble(Console.ReadLine());
- Console.WriteLine("Podaj E:");
- double e = Convert.ToDouble(Console.ReadLine());
- double wyn1 = Math.Exp(xp*-1);
- double wyn2 = Math.Exp(wyn1 * -1);
- Console.WriteLine(wyn1);
- Console.WriteLine(wyn2);
- while ((wyn2 - wyn1) > e){
- wyn1 = wyn2;
- Console.WriteLine(wyn1);
- wyn2 = Math.Exp(wyn1 * -1);
- Console.WriteLine(wyn2);
- }
Add Comment
Please, Sign In to add comment