GithubHelp home page GithubHelp logo

ranjithkumar007 / symengine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from symengine/symengine

1.0 1.0 0.0 7.29 MB

SymEngine is a fast symbolic manipulation library, written in C++

Home Page: http://sympy.org

License: Other

CMake 6.22% C++ 91.15% Mathematica 0.75% MATLAB 0.01% Shell 0.34% Batchfile 0.01% C 1.38% Pawn 0.11% Python 0.02%
math

symengine's People

Contributors

0x6773 avatar abhinavagarwal07 avatar abinashmeher999 avatar aktech avatar bjodah avatar cbehan avatar certik avatar char-chen avatar codemaxx avatar hazelnusse avatar isuruf avatar ivme avatar jppelteret avatar kunalsinx avatar myluszczak avatar nishnik avatar pbrady avatar rajithv avatar ranjithkumar007 avatar riteshkb avatar rwst avatar shikharj avatar shivamvats avatar sighingnow avatar siwachabhi avatar srajangarg avatar stoicbronco avatar sumith1896 avatar sushant-hiray avatar thilinarmtb avatar

Stargazers

 avatar

Watchers

 avatar

symengine's Issues

Missing else-if statement in rsub function in complex.h file

In Complex.h

virtual RCP<const Number> rsub(const Number &other) const
    {
        if (is_a<Rational>(other)) {
            return rsubcomp(down_cast<const Rational &>(other));
        } else if (is_a<Integer>(other)) {
            return rsubcomp(down_cast<const Integer &>(other));
        } else {
            throw NotImplementedError("Not Implemented");
        }
    };

The above function is missing an else-if statement for Number "other" of type "Complex".
rsubcomp(const Complex &other) function is already implemented but it is not called in rsub()

I think it should be like

virtual RCP<const Number> rsub(const Number &other) const
    {
        if (is_a<Rational>(other)) {
            return rsubcomp(down_cast<const Rational &>(other));
        } else if (is_a<Integer>(other)) {
            return rsubcomp(down_cast<const Integer &>(other));
        } else if (is_a<Complex>(other)) {
            return rsubcomp(down_cast<const Complex &>(other));
        } else {
            throw NotImplementedError("Not Implemented");
        }
    };

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.