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

problems with variable set as constant in equation library example "de Broglie wave" #1418

Open
prismv opened this issue Feb 7, 2025 · 2 comments
Labels
bug Something isn't working user Reported by an actual user, yay! verify The issue does not seem to reproduce (anymore?)

Comments

@prismv
Copy link

prismv commented Feb 7, 2025

version: 0.9.0

The "de Broglie wave" equations contain variable m_kg that is set to m=Ⓒme in doc example. Root is solved without problems, but solving for m gives error "SolvingMenuSolve error: Bad argument type". Furthermore change of m with e.g. me*2 results in m='me*2' kg, which would lead to an solver error.

@c3d
Copy link
Owner

c3d commented Mar 9, 2025

Hi @prismv, thanks for the report. I can't reproduce on 0.9.2. Could you please either give me an exact sequence of keys that leads to the problem, or alternatively close the issue if it's indeed fixed?

@c3d c3d added bug Something isn't working user Reported by an actual user, yay! verify The issue does not seem to reproduce (anymore?) labels Mar 9, 2025
@prismv
Copy link
Author

prismv commented Mar 9, 2025

No, it's not fixed in 0.9.2 Why should it be fixed?

How to reproduce:

  1. Populate variables by selecting example from documentation ⇒ Root(...) sets i.a. m=Ⓒme
  2. Enter then Solve menu with this equation system, e.g. right shift F5 'de Broglie wave' equation menu entry.
  3. Solve all missing variables λ, K, v
  4. now solve for m
    ⇒ SolvingMenuSolveError
  5. now assign result of Ⓒme 2 x to mass m
    ⇒ solve for any variable related to m will not work anymore because of a unit problem with m='me*2' kg
  6. m cannot be properly set back to m=Ⓒme by Solve menu actions, only by repetition of the Root example from the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user Reported by an actual user, yay! verify The issue does not seem to reproduce (anymore?)
Projects
None yet
Development

No branches or pull requests

2 participants