Friday, January 27, 2017

Plotting Slope Fields using Graph

y' = x² + y² - r²  (r = 0, 1, 2, ..., 7)


y' = (x + y)/(x - y)  (method 1)


y' = (x + y)/(x - y)  (method 2)


y' = sin(x)/y + sin(y)/x


y' = cos(x) + cos(y)


y' = cos(x) sqrt(1+x²) + cos(y) sqrt(1+y²)


Download Examples:


( Mathematical software used: Graph )

Saturday, January 7, 2017

A Monster Equation

x² + y² - a[exp(sin³(x-y)) + exp(sin³(-x-y))]² = c
  • x and y are variables.
  • a and c are parameters.


(a = 3, c = 0.5)

Scilab script:

clear;
clf();
xset("wdim",400,400);
xset("fpf"," ");
xset("thickness", 2);
square(-8.2,-8.2,8.2,8.2);

a = 3;
c = 0.5;
function z = fun(x,y)
   z = x^2 + y^2 - a*(exp(sin(x-y)^3) + exp(sin(-x-y)^3))^2 - c;
endfunction
data = linspace(-8.2, 8.2, 2000);

contour2d(data, data, fun, [0,0], style=color("red"), axesflag=0);



(a = -1, c = 24)


(a = -2, c = 50)


( Mathematical software used: Scilab )

Wednesday, December 14, 2016

Five Interlaced Moons

Five Interlaced Crescents


Generalization:

Let A and B be two disks with radii a and b.
The set difference A\B is used to plot the moons 
in the following animations.


Animation parameter: the position of B


Animation parameter: b (the radius of B)


Animation parameter: the position of A


Animation parameter: a (the radius of A)


( Mathematical softwares used: gnuplot, GeoGebra )

Four Interlaced Crescents



A cross pattée!







( Mathematical softwares used: Graph, gnuplot )


Related posts:

Triple Crescent Moon

Triple Crescent Moon Symbol
(Boundary curves: circles)


Boundary curves: superellipses with exponent 2.5


Boundary curves: superellipses with exponent 4


A monster face!


Hi!


Exponents: 1.5, 2, 2.5, 3, 3.5, 4


( Mathematical software used: gnuplot )

Monday, November 28, 2016

Cross Patty (cross pattée)


max( f(abs(x), abs(y)), f(abs(y), abs(x)) ) > 0



(1) f(x,y) = ax^2 - y + b  (parabola)


a = 0.035, b = 0.85


(2) f(x,y) = x^2 + (y - a)^2 - b^2  (circle)


a = 15.6, b = 14.75


(3) f(x,y) = abs(x)^p + abs(y - a)^p - b^p  (superellipse)


a = 15.6, b = 14.75
p = 2.5, 2.4, 2.3, ...,1.5

p = 4, a = 10, b = 8


(4) f(x,y) = a[exp(-abs(x+b)^p) + exp(-abs(x-b)^p)] - y + c


p = 1.5, a = 1, b = 7, c = 2

p = 3, a = 1, b = 7, c = 2


(5) f(x,y) = a cos(bx)^p - y + c


p = 1, a = -1, b = π/7, c = 2

p = 2, a = 1, b = π/7, c = 2

p = 3, a = -1, b = π/7, c = 2

p = 4, a = 1, b = π/7, c = 2


( Mathematical software used: Graph )

Friday, October 21, 2016

Rounded Cuboid with Superquadric Corners


The corners of the rounded cuboids on my previous post are spherical corners.

We can generalize the spherical corners (power = 2) to superquadric corners (power > 0).


Equation 1.


The equation for a rounded cuboid with superquadric corners can be given by:

       max(|x| - a, 0)p + max(|y| - b, 0)p + max(|z| - c, 0)p = dp,

where a, b, c, d > 0, and p ≧ 1.


p = 1

p = 1.5

p = 2

p = 4

p = 10


Equation 2.


Furthermore, the above equation can be generalized as follows:

       max(|x| - a, 0)p + max(|y| - b, 0)q + max(|z| - c, 0)r = d,

where a, b, c ≧ 0, d > 0, and p, q, r > 0.




Related posts: