Formula pattern is release now.

http://elixir.ematia.de/trac/wiki/Recipes/Formula

By the way, I update a file "test_formula_builder.2.py" that is
duplicate, but I have no idea how to delete it, could someone delete
it for me? Thanks.

It is easy-to-use formula system in database

You can create EPS formula like this :

share  = FormulaMeta(ReportOperand(name=u'普通股股本',
report=balanceSheet))
profit = FormulaMeta(ReportOperand(name=u'本期淨利(淨損)',
report=incomingStatement))
EPS = getFormula( (share / 10) / profit )

And calculate like this:

company = Company.get_by(id=1234)
print EPS.calculate(company, 200801)

Just get a look. It is fun! :P

Victor Lin.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to