tBuLi / symfit

Symbolic Fitting; fitting as it should be.
http://symfit.readthedocs.org
MIT License
233 stars 17 forks source link

Non-Real parameters and variables #81

Open pckroon opened 7 years ago

pckroon commented 7 years ago

As discussed in #78, it is desirable to be able to be able to do fits using non-Real numbers. I think it should be possible to assume parameters/variables are in the following domains: Real (R) (default) Complex (C) Integer (Z)

And maybe: Natural (N) (non-negative integers) Rational (Q) (p/q; p, q elements of Z)

Of course it should be possible to do this per parameter/variable. Particularly for Z I have no idea how to implement this. Maybe C can be written as R^2, but I'm not quite sure.