Hello,
When an equation includes an expression of the form a * (b + c), the rendered equation omits the parentheses. The calculation is carried out correctly as if the parentheses were in place.
from efficalc import Calculation, Input, sqrt
from efficalc.report_builder import ReportBuilder
def demo():
a = Input("a", 2.3)
b = Input("b", 5.2)
c = Input("c", 3.1)
d = Calculation("d", a*(b+c))
return d
builder = ReportBuilder(demo)
builder.view_report()
Output:
efficalc_bug_demo.py
efficalc_bug_demo_output.pdf
efficalc_bug_demo_output.html
Hello,
When an equation includes an expression of the form a * (b + c), the rendered equation omits the parentheses. The calculation is carried out correctly as if the parentheses were in place.
Output:
efficalc_bug_demo.py
efficalc_bug_demo_output.pdf
efficalc_bug_demo_output.html