• SEARCH

    통합검색
세모계
    • Dark Mode
    • GNB Always Open
    • GNB Height Maximize
    • Color
    • Brightness
    • SINCE 2015.01.19.
    • 세모계 세모계
    •   SEARCH
    • 세상의 모든 계산기  
      • 자유(질문) 게시판  
      • 계산기 뉴스/정보  
      • 수학, 과학, 공학 이야기  
      • 세모계 : 공지 게시판  
        • 구글 맞춤검색  
      • 세상의 모든 계산기  
        • 자유(질문) 게시판  
    • TI  
    • CASIO  
    • HP  
    • SHARP  
    • 일반(쌀집) 계산기  
    • 기타계산기  
    • 세모계
    • by ORANGEDAY
  • TI
    • TI nspire
    • [TI-nspire] 행렬의 입력 & 계산 - 확장 라이브러리 Matrix Library

    • Profile
      • 세상의모든계산기
        *.78.140.87
      • 2024.10.21 - 14:56 2015.01.13 - 22:45  8095  12

    1. 라이브러리 설명

     

    행렬의 입력 및 계산을 도와주는 확장 라이브러리입니다. 

    Matrix pieces Arithmetic function & Cofactor Expansion Program TI-Nspire
    By creeras
    Ver 1.5 (2024-10-21)

    ---

    Usage  

    Function_name(matrix1,matrix2,row_number,column_number)
    : For overwrite(), add(), subtract(), multiply(), divide()

    Dim(matrix1) have to be bigger than dim(matrix2),  and have to put all matrix2 elements opon matrix1 elements to calculate it.

    Function_name(matrix,row_number,column_number)
    : For insert(), insertrow(), insertcol(), minor(), cofactor()

    Function_name(matrix,r or c,index)
    : For coex()

    Function_name(matrix)
    : For adjoint(), rank(), lunp()

     

    Caution

    Result of Function() is not stored to original matrix. So store it to original matrix variable or new matrix variable.

     

     

    2. 함수 (및 프로그램) 설명

     

    TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-30-46.png


    • add(matrix1,matrix2,row_number,column_number) : 행렬을 일부분만 더함
      TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-32-21.png
      ㄴ mat_big 행렬에 mat_small을 더함. 4행 2열 ~ 5행 3열 부분만
      subtract(matrix1,matrix2,row_number,column_number) : 행렬을 일부분만 뺌
      multiply(matrix1,matrix2,row_number,column_number) : 행렬을 일부분만 곱함
      divide(matrix1,matrix2,row_number,column_number) : 행렬을 일부분만 나눔
    • overwrite(matrix1,matrix2,row_number,column_number) : 행렬을 일부분만 덮어쓰기 ; 기존 값은 무시되고, 새로운 함수의 값이 덧쓰입니다.
    • insert(matrix,row_number,column_number) : 행 또는 열을 추가합니다. (0으로 채워져 있음)
      TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-40-18.png
      delete(matrix,row_number,column_number) : 행 또는 열을 삭제합니다(=소행렬) 
      TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-42-07.png
    • Insertrow(matrix,row_number,column_number) : 1행(만)의 이동. 
      TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-58-33.png
      ㄴ 나머지 행들간의 순서변화 없음.
      TI-Nspire_CX_CAS_Student_Software_2019-06-07_00-03-13.png
      ㄴ 내장함수 rowSwap( )은 2행 사이의 위치 교환
      Insertcol(matrix,row_number,column_number) : 1열(만)의 이동. (나머지 열들간의 순서변화 없음.)
      TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-45-10.png
    • minor(matrix,row_number,column_number) : "소행렬식", 부호를 고려하지 않은 소행렬의 행렬식. \( M_{ij} \)
      cofactor(matrix,row_number,column_number) : 여인자, 부호를 고려한 소행렬식. \( C_{ij} = (-1)^{i+j} M_{ij} \)
      adjoint() : 딸림행렬 = 수반행렬
    • lunp() : permutation 없이 LU 분해하는 프로그램. // v1.4에서 추가됨. (다른 것들은 다 함수인데, 이것은 프로그램입니다) 
      https://allcalc.org/9593#comment_49292
    • coex(matrix,r or c,index) : 여인자 전개 // v1.5 에서 수정됨.

     

     

    3. 사용 방법

     

    3-1. 라이브러리를 다운로드 : matrix.tns

    3-2. TI-nspire의 MyLib 폴더에 옮겨 넣고

    3-3. refresh Library : 【Doc】 【6】 상세 설명은 다음 링크 확인 https://allcalc.org/35636

    사용하시면 됩니다. 

     

     

    4. 동영상 설명

     

     

     

    5. 업데이트 내역

     

    V1.31 (2015-11-22)

    근사(approx)계산시 rank 오류 해결 

    V1.40 (2024-10-07)

    lunp() 추가 // permutation 없이 LU 분해함.  

    V1.50 (2024-10-21)

    coex() 수정 // 기존에 열선택할 수 없던 문제, 그리고 step-by-step 확인하지 못하던 문제 해결

    0
    0
    #ti #nspire #matrix #행렬 #라이브러리 #lunp #coex
    Attached file
    TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-30-46.png 4.5KB 45TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-32-21.png 5.0KB 54TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-40-18.png 5.6KB 49TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-42-07.png 3.4KB 54TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-45-10.png 5.1KB 52TI-Nspire_CX_CAS_Student_Software_2019-06-06_23-58-33.png 5.1KB 52TI-Nspire_CX_CAS_Student_Software_2019-06-07_00-03-13.png 7.9KB 62matrix.tns 8.2KB 30
    이 게시물을..
    • 세상의모든계산기 세상의모든계산기 Lv. 25

      계산기는 거들 뿐
      혹은
      계산기를 거들 뿐

    • TI-nspire 배터리가 충전되지 않을 때세상의모든계산기
    • [TI-nspire] dotP() 벡터 (or 리스트) 내적세상의모든계산기

     댓글 12

      • 계산기를 거들뿐 (*.76.96.55) 2016.02.25 04:52 #comment_15178

        Q : ti 89 titanium 에서도 사용이 가능 한가요??

        0
        댓글 수정 삭제
      • Profile
      • 세상의모든계산기 (*.165.6.43) 2016.02.25 08:23 #comment_15185
        [TI-89] 와 [TI-nspire] 는 프로그램 호환이 되지 않습니다.
        0
        댓글
      • ㅇㅇ (*.177.229.185) 2016.04.03 17:24 #comment_17032
        실행이 안되는데 확인 좀 해주실수있어요?
        0
        댓글 수정 삭제
      • Profile
      • 세상의모든계산기 (*.165.6.43) 2016.04.03 20:12 #comment_17055
        잘 됩니다.
        0
        댓글
      • ㅇㅇ (*.177.229.185) 2016.04.04 13:12 #comment_17094
        refresh가 안되어있었네요 감사합니다
        0
        댓글 수정 삭제
      • 궁금해요 (*.221.30.144) 2017.01.01 16:28 #comment_19533

        Q : 계산기 시험전에 초기화하면 확장라이브러리도 같이 삭제되는건가요? 그럼 사용할 수 없겠네요?

        0
        댓글 수정 삭제
      • Profile
      • 세상의모든계산기 (*.105.130.207) 2017.01.03 06:40 #comment_19540
        http://www.allcalc.org/9079
        사용자에 의해 생성된 모든것을 제거하는 과정이 초기화이니 당연히 삭제됩니다.
        0
        댓글
      • 익명 (*.23.186.197) 2018.04.14 12:08 #comment_23088

        insert 기능은 한번에 행 열 하나씩만 추가 되는 건가요??


        예를 들어 2행과 3행 사이에 행을 한번에 두개 넣는 건 안되나요??
        감사합니다

        0
        댓글 수정 삭제
      • Profile
      • 세상의모든계산기 (*.149.30.28) 2018.04.14 15:35 #comment_23095
        만든지 오래돼서 기억이 잘 안납니다만,
        안될 것 같네요.

        【insert(행렬A,3,0)→행렬A】 【enter】
        【enter】

        이렇게 하시는 것이 최선일 듯 합니다.
        0
        댓글
      • 익명 (*.47.152.187) 2018.04.14 18:28 #comment_23100
        감사합니다
        0
        댓글 수정 삭제
      • Profile
      • 세상의모든계산기 (*.40.137.167) 2024.10.21 12:00 #comment_50759

        여인수와 여인자를 구분?


        AI 를 돌려보면 여인자는 Cofactor 로 C로 표시하고, 

        여인수는 소행렬식 즉, Minor 로 M 으로 표시하여 둘을 서로 구분합니다. 

         

        하지만, 
        우리나라에서는 "여인자"와 "여인수"라는 용어를 모두 동일하게 Cofactor 로 사용하고, 

        Minor 는 "소행렬식"이라고 부르는 듯 합니다. 

        0
        댓글
      • Profile
      • 세상의모든계산기 (*.40.137.167) 2024.10.21 13:53 #comment_50814

        여인자 전개 프로그램 수정 V1.5


        Define LibPub coex(mat1,choice,index)=
        Func
        :© coex(matrix,r or c,index)
        :© Initialize
        :Local mat1_dim,i,j,co.result,minormat,sgn
        :dim(mat1)→mat1_dim
        :newMat(mat1_dim[1],2)→co.result
        :
        :©Main Body
        :Disp "Cofactor Expansion ="
        :
        :If string(choice)="r" Then
        :  If 1≤index≤mat1_dim[1] Then
        :    For j,1,mat1_dim[2]
        :[mat1[index,j],cofactor(mat1,index,j)]→co.result[j]
        :      minormat:=delete(mat1,index,j)
        :      sgn:=(−1)^(index+j)
        :      If j=1 Then
        :        If sgn=1 Then
        :        Disp string(mat1[index,j])&"×det(",minormat,")"
        :        Disp "(("&string(mat1[index,j])&")×("&string(minor(mat1,index,j))&"))"
        :        Else
        :          Disp "-("&string(mat1[index,j])&")×det(",minormat,")"
        :          Disp "-"&"(("&string(mat1[index,j])&")×("&string(minor(mat1,index,j))&"))"
        :        EndIf
        :      Else
        :        Disp "----------"
        :        If sgn=1 Then
        :          Disp "+("&string(mat1[index,j])&")×det(",minormat,")"
        :          Disp "+"&"(("&string(mat1[index,j])&")×("&string(minor(mat1,index,j))&"))"
        :        Else
        :          Disp "-("&string(mat1[index,j])&")×det(",minormat,")"
        :          Disp "-"&"(("&string(mat1[index,j])&")×("&string(minor(mat1,index,j))&"))"
        :        EndIf
        :      EndIf
        :    EndFor
        :  Else
        :    Disp "Invalid Row Index"
        :  EndIf
        :
        :ElseIf string(choice)="c" Then
        :  If 1≤index≤mat1_dim[2] Then
        :    For i,1,mat1_dim[1]
        :[mat1[i,index],cofactor(mat1,i,index)]→co.result[i]
        :      minormat:=delete(mat1,i,index)
        :      sgn:=(−1)^(index+i)
        :
        :      If i=1 Then
        :        If sgn=1 Then
        :          Disp string(mat1[index,i])&"×det(",minormat,")"
        :          Disp "(("&string(mat1[i,index])&")×("&string(minor(mat1,i,index))&"))"
        :        Else
        :          Disp "-("&string(mat1[index,i])&")×det(",minormat,")"
        :          Disp "-"&"(("&string(mat1[index,i])&")×("&string(minor(mat1,index,i))&"))"
        :        EndIf
        :
        :      Else
        :        Disp "----------"
        :        If sgn=1 Then
        :          Disp "+("&string(mat1[index,i])&")×det(",minormat,")"
        :          Disp "+"&"(("&string(mat1[index,i])&")×("&string(minor(mat1,index,i))&"))"
        :        Else
        :          Disp "-("&string(mat1[index,i])&")×det(",minormat,")"
        :          Disp "-"&"(("&string(mat1[index,i])&")×("&string(minor(mat1,index,i))&"))"
        :        EndIf
        :
        :      EndIf
        :    EndFor
        :  Else
        :    Disp "Invalid Column Index"
        :  EndIf
        :Else
        :  Disp "Invalid Choice : Input ""r"" or ""c"" for 2nd argument"
        :EndIf
        :
        :© Finalize
        :Return det(mat1)
        :EndFunc

         

         

        사용 예시

        image.png

        image.png

        Attached file
        image.png 35.9KB / 9 image.png 35.1KB / 7
        0
        댓글
    • 댓글 입력
    • 에디터 전환
    댓글 쓰기 에디터 사용하기 닫기
    • 목록 목록
    • TI-nspire 배터리가 충전되지 않을 때
    • [TI-nspire] dotP() 벡터 (or 리스트) 내적
    • 목록
    12
    by OrangeDay
    • TI
    • allcalc.org
    • 세모계 all rights reserved.