English
Examples

Multiplikation of Matrizen

 

HofK
Infinity-Profan allows a particularly übersichtliche work with Matrizen.



see  [...] 


Thanks the Possibility without extra characters within [ ] over Lines away To write and the Separator between whom Values To dispense, yields itself a statement "wie on the Papier" or How in the Matrizen-book.

// Multiplikation of Matrizen
A1 = [
[ 5 7 9]
[ 2 3 0]
[ 2 0 12]
[11 1 1]
]
B1 = [
[10 2 0 0 1]
[ 3 0 1 0 1]
[ 1 2 1 4 1]
]

print mmul A1 B1
//--------------------------------------------

proc mmul A B
C = [ // Vorbelegung
[0 0 0 0 0]
[0 0 0 0 0]
[0 0 0 0 0]
[0 0 0 0 0]
]
if len(A[0])==len(B)// only then definiert
i=0
while i < len(A)// Zeilen von A
k=0
while k < len(B[0])// Spalten von B
C[i][k] = 0
j = 0
while j < len(A[0])// Zeile A * Spalte B
C[i][k] = C[i][k] + A[i][j]*B[j][k]
j++
wend
k++
wend
i++
wend
return C
else
return "NaM"// hardship a Matrix
endif
endproc

Update on the latest stood the Syntax on the 09.04.2016
 
01/04/16  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.353 Views

Untitledvor 0 min.
Thomas Freier07/22/18
Joeos07/23/16
Boroberto04/22/16
HofK04/10/16
More...

Themeninformationen

this Topic has 1 subscriber:

HofK (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie