Terrain and surface in mathematical graphics

Source: Internet
Author: User

In a mathematical expression, if the form is y = f (x, z), it can be called a terrain surface. it can be considered that the position on each plane corresponds to a unique height value.

In this section, we will display the graphics of several terrain and surfaces. use the script code of the custom syntax to generate a hyper-ball image. for related software, see: Mathematical graphics visualization tool. This software is free and open-source. QQ chat group: 367752815

The original version of this software was written only for the equation Y = f (x, z). For details, see why mathematical graphics display tool. at that time, a mathematical expression is input, and then its data range is input to generate a graph, as shown in:

 

Then, based on the software, we reconstructed the original mathematical expression parsing algorithm, defined a script language format, and edited the mathematical graphics in the form of scripts.

(1)

#http://www.mathcurve.com/surfaces/algebricsu/algebricsu.shtmlvertices = dimension1:101 dimension2:101x = from (-4) to (4) dimension1z = from (-4) to (4) dimension2a = (x*x + z*z)y = x*z/(a*a)y = limit(y, -5, 5)

(2)

vertices = dimension1:320 dimension2:320x = from (-4) to (4) dimension1z = from (-4) to (4) dimension2r = x^2 + z^2y = sin(x^2 + z^2*3)/(0.05 + r) + (x^2 + z^2*5)*exp(1 - r)/2u = xv = zx = x*5y = y*5z = z*5

(3)

vertices = dimension1:201 dimension2:201x = from (-20) to (20) dimension1z = from (-20) to (20) dimension2y = sin(sqrt(x*x+z*z))u = x/5v = z/5

(4)

vertices = dimension1:201 dimension2:201x = from (-8*PI) to (8*PI) dimension1z = from (-8*PI) to (8*PI) dimension2a = abs(x)b = abs(z)y = sin(a * b * 0.1)*exp((a + b)/24)u = x/5v = z/5

(5)

vertices = dimension1:201 dimension2:201x = from (-100) to (100) dimension1z = from (-100) to (100) dimension2y = sqrt(abs(x*z)) + sin(x*z*0.005)*5u = x/10v = z/10

(6)

vertices = dimension1:101 dimension2:101x = from (-100) to (100) dimension1z = from (-100) to (100) dimension2y = sqrt(abs(x*z))u = x/10v = z/10

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.