Files
propka/Source/determinant.py
Matvey Adzhigirey 2079259884 Improve Python 2 compatability with "future" print_function.
Use python3 version of the print function when running
under python2. Also added "from __future__ import division"
to a few more module files.
2012-12-20 11:29:41 -05:00

30 lines
630 B
Python

from __future__ import division
from __future__ import print_function
class Determinant:
"""
Determinant class - set up for later structurization
"""
def __init__(self, group, value):
"""
Contructer of determinant object - simple, but helps in creating structure!
"""
self.group = group
self.label = group.label
self.value = value
return
def add(self, value):
"""
adding a value to determinant
"""
self.value += value
return
def __str__(self):
return '%s: %8.2f'%(self.label,self.value)