Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-commuting functions, denominators, and brackets #466

Open
jmbrod opened this issue Jan 18, 2024 · 2 comments
Open

non-commuting functions, denominators, and brackets #466

jmbrod opened this issue Jan 18, 2024 · 2 comments

Comments

@jmbrod
Copy link

jmbrod commented Jan 18, 2024

Hello, just a quick question (not very urgent). Is there a reason that fractions of e.g. symbols are pulled out of a bracket if they are to the left a non-commuting function that is bracketed? I.e. it seems that denom_ is internally always treated as non-commuting (why)?

As a simple example, this code

s x1,x2;
f fun;

l exp1 = fun(x1) + 1/(x1-x2) * fun(x1);

b fun;

print +s;
.end

gives two terms in the final result:

   exp1 =

       + 1/( - x2 + x1)*fun(x1) * (
          + 1
          )

       + fun(x1) * (
          + 1
          );

This does not happen if fun is commuting, or if in my expression I have the denominator to the right of fun, or if the symbols appear only in a numerator.

Just curious -- thanks for any comments!

@jmbrod jmbrod changed the title non-commuting functions and brackets non-commuting functions, denominatros, and brackets Jan 18, 2024
@jmbrod jmbrod changed the title non-commuting functions, denominatros, and brackets non-commuting functions, denominators, and brackets Jan 18, 2024
@vermaseren
Copy link
Owner

vermaseren commented Jan 18, 2024 via email

@jmbrod
Copy link
Author

jmbrod commented Jan 18, 2024

OK, thanks for the quick clarification and the advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants