<< Chapter < Page Chapter >> Page >

Tạo một véc tơ và các phép tính véc tơ

Tạo một véc tơ

Véc tơ là một dãy sắp xếp ngay ngắn (hay Ma trận chỉ có một cột). Để tạo một Véc tơ trong Mathcad, thực hiện theo các cách sau:

 Trên thanh menu: chọn Insert/Matrix…

 Trên thanh Math: nhắp vào biểu tượng

 Từ bàn phím: nhấn tổ hợp Ctrl+M

Xuất hiện hộp thoại Insert Matrix (hình3.1).

Hình 3.1. Hộp thoại Insert Matrix

  • Trong khung Rows chọn số dòng tương ứng.
  • Trong khung Columns chọn số cột tương ứng.
  • Chọn OK, xuất hiện ***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***, nhập số cần thiết vào sẽ được một Véc tơ mong muốn.

Tính toán với véctơ

  1. Tích của hai Véc tơ (Dot product)

 Tính vô hướng của hai Véc tơ

 Kích vào biểu tượng (hình 3.4), xuất hiện ***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

 Nhập tên hai Véc tơ muốn tính.

Ví dụ:

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

 Tính có hướng của hai Véc tơ

 Kích vào biểu tượng (hình 3.4), xuất hiện

 Nhập tên hai Véc tơ muốn tính.

Ví dụ:

b. Giao của hai Véc tơ (Cross product)

 Kích vào biểu tượng (hình 3.4), xuất hiện ***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

 Nhập tên hai Véc tơ muốn tính.

Ví dụ:

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

c. Tổng của một Véc tơ (vector sum)

 Kích vào biểu tượng (hình 3.4), xuất hiện ***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***.

 Nhập tên Véc tơ muốn tính.

Ví dụ:

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

Tính kích cỡ của véctơ

  • Hàm length (v) : cho biết Véc tơ có bao nhiêu phần tử.
  • Hàm last (v) : cho biết thứ tự của phần tử cuối cùng.

Ví dụ:

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

Tạo một bảng giá trị của hàm số

Ví dụ:

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

Ví dụ: Tạo bảng giá trị các khoảng chia không theo một thứ tự nào.

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

Lưu ý: Kết quả lên màn hình chỉ thể hiện tối đa 15 phần tử. Trường hợp lớn hơn 15 phần tử khi đó kích đúp vào bảng giá trị, xuất hiện bảng trị số sử dụng thanh trượt sẽ thấy tất cả các kết quả.

Tạo một ma trận và tính toán với ma trận

Tạo một ma trận

 Thực hiện giống như cách tạo một Véc tơ nếu Ma trận có ít hơn 10 dòng và 10 cột hoặc thực hiện theo cách sau:

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

Lưu ý: Mathcad sẽ đặt giá trị “0” cho tất cả các phần tử mà bạn không định nghĩa.

Ví dụ:

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

Tuy nhiên cách trên không tiện, mất nhiều thời gian để nhập số liệu.

 Khi Ma trận có nhiều hơn 100 phần tử, thực hiện theo các cách sau:

  • Nối các mảng nhỏ lại với nhau.
  • Đọc từ tập tin dữ liệu.
  • Dùng biến chạy.
  • Tạo bảng dữ liệu nhập.

Ví dụ: Tạo một Ma trận bằng cách dùng biến chạy.

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

Ví dụ: Tạo một Ma trận với các giá trị của hàm số.

***SORRY, THIS MEDIA TYPE IS NOT SUPPORTED.***

Hiệu chỉnh ma trận

Xoá cột (hoặc hàng) của ma trận

Để xoá một cột (hoặc hàng) hay nhiều cột (hoặc nhiều hàng) của Ma trận, thực hiện như sau:

  • Kích vào phần tử cột (hoặc hàng) muốn xoá.
  • Từ hộp thoại Insert Matrix (hình 3.1) chỉ rõ số cột (hàng) muốn xoá.
  • Kích nút Delete.

Ví dụ:

Cho Ma trận sau:

Questions & Answers

what is phylogeny
Odigie Reply
evolutionary history and relationship of an organism or group of organisms
AI-Robot
ok
Deng
what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Bài giảng môn học mathcad. OpenStax CNX. Jul 29, 2009 Download for free at http://cnx.org/content/col10744/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Bài giảng môn học mathcad' conversation and receive update notifications?

Ask