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.Numerics;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Equation
- {
- public Func<Complex, Complex> ComputeFunction;
- public Func<Complex,int, int> ComputeIterateFunction;
- public int itMax = 0;
- public Complex Compute(Complex c)
- {
- if (ComputeFunction == null) return 0;
- return this.ComputeFunction(c);
- }
- public int ComputeIterate(Complex c)
- {
- return ComputeIterateFunction(c, itMax);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement