I've found the following piece of code in _implicit_multiplication
elif (isinstance(tok, AppliedFunction) and
nextTok[0] == OP and nextTok[1] == '('):
# Applied function followed by an open parenthesis
if tok.function[1] == "Function":
result[-1].function = (result[-1].function[0], 'Symbol')
result.append((OP, '*'))
Is there any reason to substitute a Function with a Symbol?
On Monday, November 22, 2021 at 9:00:13 AM UTC+2 Paul Royik wrote:
> I want to parse something like `f(x) - 2 sin 3x`.
>
> If I use `parse_expr` without `implicit_multiplication_application`, then
> `f(x)` is parsed correctly, but not `2 sin 3x`.
>
> If I include `implicit_multiplication_application`, then `f(x)` is parsed
> as `fx`.
>
> Is this a bug?
>
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/7daad2ef-415d-46af-a9dc-92bb2006fa1bn%40googlegroups.com.