English
Source / code snippets

Dimensionen of/ one Matrix detect

 

p.specht

The real Matrixmultiplikation requires, that a the Matrizen, z.B. The Multiplikator-Matrix "gestürzt" becomes - mostly diejenige right of Malzeichen. The left is the Multiplikandenmatrix and remaining upright How she's (The Order is with Matrizen namely NOT alike). The maths-Freak speaks of TRANSPOSITION T and mark such Matrizen with M´ or transp(M).
sometimes need one moreover several copies the same Matrix, but even plummeted. naturally could one Yes simply Lines- and Spaltenindex vertauschen, but with komplizierteren Matrixformeln (z.B. Eigenwertermittlungen) unit one very slight confusion, with welchem Teilergebnis to the now do must, with welchem not...

swell thing, that suitable Procedures through PType$(n%)-commands experienced can, wes Type and size one as n%. Parameter übergebenes aray is - one wants Yes finally no naughty things arrange.

straight for Transponieren must one now from the PType-String detect, How big the thing in all vorhandenen directions really is. this is relatively with difficulty - particularly if it itself circa mehrdimensionale Arrays deals (XProfan can presently up to 3 Dimensionen, the Commodore 64 could up to 14 ). hereinafter my diesbezüglichen endeavours.


Font 2:Randomize:Cls Rnd(8^8)
Declare a![1323,50,20],b![50,100],c![50],d!,e![]
Declare a$[0,0,0],b$[1,0],c$[0],e$,f$[]
Declare x&,y&,z&, type$,di& '= Dimensionen (0: Skalar)

'Parameterwert in the Klammer testweise swap:
GetXYZ( a![] ) ' occupied variables type$, di& and, if
' meaningfully The variables x&,y&,z&
WaitInput
End
'----------------------------------------------------
PROC GetXYZ
var pt$=ptype$(1)
var verbose%=1 ' 1: Kontrollausgabe one
type$=mid$(pt$,1,1)
if match$(",[0-9]+,",pt$)>""
x&=val(match$("[0-9]+",match$("~[[0-9]+",pt$) ))
y&=val(match$("[0-9]+",match$(",[0-9]+,",pt$) ))
z&=val(match$("[0-9]+",match$(",[0-9]+~]",pt$) ))
di&=3:case verbose%:print x&,y&,z&,-di&
elseif match$("~[[0-9]+,[0-9]+~]",pt$ )>""
x&=val(match$("[0-9]+",match$("~[[0-9]+",pt$) ))
y&=val(match$("[0-9]+",match$(",[0-9]+~]",pt$) ))
di&=2:case verbose%:print x&,y&,-di&
elseif match$("~[[0-9]+~]",pt$) >""
x&=val(match$("[0-9]+",match$("~[[0-9]+~]",pt$) ))
di&=1:case verbose%:print x&,-di&
elseif match$("~[", pt$ ) = ""
di&=0:case verbose%:print -di&;" Skalarwert"
elseif match$("~[]", pt$ ) > ""
di&=-1:case verbose%:print -di&;": Dynamisches aray!"
else
print "ERROR: Interpretationsfehler ptype in GetXYZ()"
Endif
case verbose%: print "Typ = "; type$
ENDPROC
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
04/17/21  
 




Michael
W.
...not ausgewogene "[]"And quotation marks...
 
Alle Sprachen
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
04/29/21  
 




p.specht

the board shining with my summary the Lines not all right been To his. Reparatur was only as CONSOLE-Text possible, otherwise results because of the Boardlogik The explanation the Tilde ~ as external Funktionsaufruf instead of as regex-Steuerzeichen-Escape...

ought to now fit, at least for XProfan 11.2a free ...

WEISS MARKIEREN, RECHTE MAUSTASTE DARAUF, KOPIEREN
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
04/29/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

984 Views

Untitledvor 0 min.
N.Art11/27/22
Ernst07/21/21
Glubbfan06/19/21
Uwe ''Pascal'' Niemeier06/13/21
More...

Themeninformationen

this Topic has 2 subscriber:

p.specht (2x)
Michael W. (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