MCPcopy
hub / github.com/google-deepmind/mathematics_dataset / __str__

Method __str__

mathematics_dataset/sample/ops.py:353–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

351 super(Mul, self).__init__(args)
352
353 def __str__(self):
354 if not self.children:
355 return '1'
356 else:
357 args = [bracketed(arg, self, False) for arg in self.children]
358 return MUL_SYMBOL.join(args)
359
360 def sympy(self):
361 return sympy.Mul(*[sympy.sympify(arg) for arg in self.children])

Callers

nothing calls this directly

Calls 1

bracketedFunction · 0.85

Tested by

no test coverage detected