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

光辉 韦 41 Reputation points

C + + has no function or library for solving equations

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

    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

    Linear Equation Solver in C++

    Gaussian elimination in C++

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

    • Wayne
    No comments