数学软件实验9

数学软件实验9
数学软件实验9

《数学软件应用》 实验 姓名: 学号:

实验9:二维、三维 随机游走

一、 实验目的

1. 掌握MATHMATICA 关于作图的基本命令

2. 掌握MATHMATICA 关于作图的基本技巧

3 认识作图程序设计初步

二、 预备知识

1、2维作图基本命令

(1)

Line[{pt 1, pt 2, }] is a graphics primitive which represents a line joining a sequence of points.

Point[coords ] is a graphics primitive that represents a point.

(2) Graphics is displayed using Show .

The following graphics primitives can be used: Circle x ,y ,r circle Disk x ,y ,r filled disk Line x 1,y 1 ,… line Point x ,y point Polygon x 1,y 1 ,… filled polygon PostScript "string " PostScript code to include verbatim Raster array array of gray levels RasterArray garray array of colored cells Rectangle xmin ,ymin , xmax ,ymax filled rectangle Text expr , x ,y

text

(3) Graphics3D[primitives , options ] represents a three-dimensional graphical image.

Graphics3D is displayed using Show .

The following graphics primitives can be used:

《数学软件应用》 实验 姓名: 学号: Cuboid xmin ,ymin ,zmin ,… cuboid Line x 1,y 1,z 1 ,… line Point x ,y ,z point Polygon x 1,y 1,z 1 ,… polygon Text expr , x ,y ,z

text

三. 实验内容与要求

1、 编写程序画出二维平面按格点的100步的随机游走

2、 编写程序画出三维空间上的100步按格点的随机游走

相关主题
相关文档
最新文档