Skip to content

Missing parentheses in equation rendering #34

Description

@mlh2nd

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:

Image

efficalc_bug_demo.py

efficalc_bug_demo_output.pdf

efficalc_bug_demo_output.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions