IT. Expert System.

PHP

Solve a system of linear equations


Lapack::solveLinearEquation

(PECL lapack >= 0.1.0)

Lapack::solveLinearEquationSolve a system of linear equations

Description

public static array Lapack::solveLinearEquation ( array $a , array $b )

This function computes the solution to the system of linear equations with a square matrix A and multiple right-hand sides B. Solves A * X = B for multiple B.

Parameters

a

Square matrix of linear equations

b

Right hand side to be solved for

Return Values

Matrix X

Examples

Example #1 Using Lapack::singularValues():

<?php

    $a 
= array(
        array( 
6.80,  -6.05,  -0.45,   8.32,  -9.67   ),
        array(-
2.11,  -3.30,   2.58,   2.71,  -5.14   ),
        array( 
5.66,   5.36,  -2.70,   4.35,  -7.26   ),
        array( 
5.97,  -4.44,   0.27,  -7.17,   6.08   ),
        array( 
8.23,   1.08,   9.04,   2.14,  -6.87   ),
    );

    
$b = array(
       array(  
4.02,  -1.56,   9.81   ),
       array(  
6.19,   4.00,  -4.09   ),
       array( -
8.22,  -8.67,  -4.57   ),
       array( -
7.57,   1.75,  -8.61   ),
       array( -
3.03,   2.86,   8.99   ),
    );

    
$result Lapack::solveLinearEquation($a$b);

    
?>



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 640 / 158692079. Delta: 0.02542 с