How to write an algorithm to solve linear equation in C + +?

光辉 韦 41 Reputation points
2020-08-29T04:39:47.2+00:00

C + + has no function or library for solving equations

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,635 questions
{count} votes

1 answer

Sort by: Most helpful
  1. WayneAKing 4,246 Reputation points
    2020-08-30T23:06:54.243+00:00

    Have you not taken the time to search the web for examples?
    If you search for "linear equations c++" you should find numerous.
    e.g. -

    C++ Program to Solve any Linear Equation in One Variable
    https://www.tutorialspoint.com/cplusplus-program-to-solve-any-linear-equation-in-one-variable

    Linear Equation Solver in C++
    https://www.codeproject.com/articles/675908/linear-equation-solver-in-cplusplus

    Gaussian elimination in C++
    https://www.codespeedy.com/gaussian-elimination-in-cpp/

    "In this tutorial, we will learn how to solve linear equations
    using Gaussian elimination in C++."

    • Wayne
    No comments