|
.out.print(\\\\" X \\\\"); delay(50);
System.out.print(result2); delay(100);
System.out.print(\\\\" ? \\\\"); delay(100); 1. Multiply.java (Java 소스 파일)
2. Multiply.class (Java 클래스 파일)
4.94KB
|
- 페이지 2페이지
- 가격 2,200원
- 등록일 2013.11.19
- 파일종류 압축파일
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
메인 메소드는 다음과 같다.
public static void main(String[] args) {
int[][] matrix_a = {
{1, 2, 3},
{4, 5, 6}
};
int[][] matrix_b = {
{1, 2},
{3, 4},
{5, 6}
};
int[][] matrix_c = multiply(matrix_a, matrix_b);
if (matrix_c == null) {
return;
}
pri
|
- 페이지 1페이지
- 가격 800원
- 등록일 2006.04.12
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
multiply: // multiply연산
m_Result *= atof(m_Edit);
break;
case divide: // divide연산
denominator=atof(m_Edit);
if ( fabs(denominator)<m_Tol ) throw ("Error: Denominator is too small"); //분모가 0 또는 너무 작을 경우
m_Result /= denominator;
break;
default:
|
- 페이지 5페이지
- 가격 4,900원
- 등록일 2011.01.04
- 파일종류 기타
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
");
}
/* 다음과 같은 행렬의 곱을 수행하는 프로그램을 작성하시오.*/
#include <stdio.h>
#define rows 2
#define cols 3
typedef double matrixa[rows][cols];
typedef double matrixb[cols][rows];
typedef double resultc[rows][rows];
void multiply(resultc r, matrixa a, matrixb b);
void display(resu
|
- 페이지 76페이지
- 가격 4,000원
- 등록일 2012.08.23
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
multiply연산에서는 결과값의 출력에 최대 64bit가 필요하다. 따라서 32bit result로 출력할 수 있는 범위를 초과하는 경우, 상위 bit를 output 'hi_val'로 출력한다. 나머지 연산의 경우는 32bit result만으로 충분하므로, 32to1 MUX의 다른 input 값들은 모두 0이
|
- 페이지 6페이지
- 가격 2,000원
- 등록일 2011.10.02
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|