Giter Club home page Giter Club logo

Comments (5)

saschatimme avatar saschatimme commented on July 1, 2024 1

Ah yes the square root is the problem, but this is actually exactly the case that I wanted to support in the first place. I will try to take a look soon :)

from homotopycontinuation.jl.

saschatimme avatar saschatimme commented on July 1, 2024

The code path is only hit if the exponent is not an integer, so OP_POW_INT is most likely wrong. What type of exponents do you have?

When implementing the procedure, I wanted to deal with general exponents initially but I abandoned this approach since it would only be allowed in very specific circumstances. However, I think just supporting rational numbers or floating point values should be easily feasible.

from homotopycontinuation.jl.

oameye avatar oameye commented on July 1, 2024

Many thanks for responding so quickly. I have managed to make a minimum working example:

using HomotopyContinuation

@var x
@var a b

vars = HomotopyContinuation.Variable[x]
para = HomotopyContinuation.Variable[a, b]

pol = x*sqrt((a^2 - b^2))
eq = Expression[pol]

sys = System(eq, variables = vars, parameters = para)

solve(sys, start_system=:total_degree, target_parameters=Number[0.99, 0.98])

To problem seems to be the sqrt((a^2 - b^2)) in the expression, i.e., we have an exponent of 1/2.

from homotopycontinuation.jl.

oameye avatar oameye commented on July 1, 2024

I have tested out the new PR and it solves my original problem I experienced in HarmonicBalance.jl. Thank you!

from homotopycontinuation.jl.

saschatimme avatar saschatimme commented on July 1, 2024

Happy to hear that :) Just tagged a new release (2.8.3) that contains the fix

from homotopycontinuation.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.