Calculation of the Polar Radius of the Twin Gielis Curve
Calculation of the Polar Radius of the Twin Gielis Curve
TGE is used to calculate the polar radii of the twin Gielis equation or one of its simplified versions at given polar angles.
UTF-8
TGE(P, phi, m =1, simpver =NULL, nval =1)
Arguments
P: the parameters of the twin Gielis equation or one of its simplified versions.
phi: the polar angle(s).
m: the given m value that determines the number of angles of the twin Gielis curve within [0,2π).
simpver: an optional argument to use the simplified version of the twin Gielis equation.
nval: the specified value for n2 or n3 in the simplified versions.
Details
The general form of the twin Gielis equation can be represented as follows:
r(φ)=exp{α+βln[re(φ)]1+γ},
where r represents the polar radius of the twin Gielis curve at the polar angle φ, and re represents the elementary polar radius at the polar angle φ. There is a hyperbolic link function to link their log-transformations, i.e.,
ln[r(φ)]=α+βln[re(φ)]1+γ.
The first three elements of P are α, β, and γ, and the remaining element(s) of P are the parameters of the elementary polar function, i.e., re(φ). See Shi et al. (2020) for details.
When simpver = NULL, the original twin Gielis equation is selected:
re(φ)=cos(4mφ)n2+k1sin(4mφ)n3,
where re represents the elementary polar radius at the polar angle φ; m determines the number of angles of the twin Gielis curve within [0,2π); and k, n2, and n3 are the fourth to the sixth elements in P. In total, there are six elements in P.
When simpver = 1, the simplified version 1 is selected:
re(φ)=cos(4mφ)n2+sin(4mφ)n2,
where n2 is the fourth element in P. There are four elements in total in P.
When simpver = 2, the simplified version 2 is selected:
re(φ)=cos(4mφ)n2+sin(4mφ)n2,
where n2 should be specified in nval, and P only includes three elements, i.e., α, β, and γ.
When simpver = 3, the simplified version 3 is selected:
re(φ)=cos(4mφ)n2+sin(4mφ)n3,
where n2 and n3 are the fourth and fifth elements in P. There are five elements in total in P.
When simpver = 4, the simplified version 4 is selected:
re(φ)=cos(4mφ)n2+k1sin(4mφ)n2,
where k and n2 are the fourth and fifth elelments in P. There are five elements in total in P.
When simpver = 5, the simplified version 5 is selected:
re(φ)=cos(4mφ)n2+k1sin(4mφ)n2,
where k is the fourth elelment in P. There are four elements in total in P. n2 should be specified in nval.
Returns
The polar radii predicted by the twin Gielis equation or one of its simplified versions.
Note
simpver here is different from that in the GE function.
Li, Y., Quinn, B.K., Gielis, J., Li, Y., Shi, P. (2022) Evidence that supertriangles exist in nature from the vertical projections of Koelreuteria paniculata fruit. Symmetry
Shi, P., Gielis, J., Quinn, B.K., Niklas, K.J., Ratkowsky, D.A., Schrader, J., Ruan, H., Wang, L., Niinemets, Ü. (2022) 'biogeom': An R package for simulating and fitting natural shapes. Annals of the New York Academy of Sciences 1516, 123−134. tools:::Rd_expr_doi("10.1111/nyas.14862")
Shi, P., Ratkowsky, D.A., Gielis, J. (2020) The generalized Gielis geometric equation and its application. Symmetry 12, 645. tools:::Rd_expr_doi("10.3390/sym12040645")