scieee AI-readable full text Open interactive document viewer

On C2 cubic quasi-interpolating splines and their computation by subdivision via blossoming

Barrera Rosillo, Domingo,Eddargani, Salah

Abstract

"Maria de Maeztu" Excellence Unit IMAG (University of Granada, Spain) CEX2020-001105-MICIN/AEI/10.13039/501100011033

Full text

Journal of Computational and Applied Mathematics 420 (2023) 114834 Contents lists available at ScienceDirect Journal of Computational and Applied Mathematics journal homepage: www.elsevier.com/locate/cam On C2cubic quasi-interpolating splines and their computation by subdivision via blossoming D. Barrera a,b,∗, S. Eddargani a,c, A. Lamnii d aDepartment of Applied Mathematics, University of Granada, Campus de Fuentenueva s/n, 18071 Granada, Spain bIMAG – Institute of Mathematics, Ventanilla 11, 18001 Granada, Spain cHassan First University of Settat, Faculté des Sciences et Techniques, Laboratoire MISI, Morocco dAbdelmalek Essaadi University, LaSAD, ENS, 93030, Tetouan, Morocco article info Article history: Received 22 August 2021 Received in revised form 1 September 2022 Keywords: Bernstein–Bézier representation Cubic splines Quasi-interpolation schemes Subdivision rules abstract We discuss the construction of C2cubic spline quasi-interpolation schemes defined on a refined partition. These schemes are reduced in terms of degrees of freedom compared to those existing in the literature. Namely, we provide a rule for reducing them by imposing super-smoothing conditions while preserving full smoothness and cubic precision. In addition, we provide subdivision rules by means of blossoming. The derived rules are designed to express the B-spline coefficients associated with a finer partition from those associated with the former one. ©2022 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). 1. Introduction Spline functions are a mature and well-researched field in numerical analysis. The use of low degree polynomials is beneficial for curve fitting as they reduce the computational load and numerical instabilities that are typical of high degree polynomial interpolants. Cubic splines with continuity C2are very appealing because they couple the low degree with full smoothness which allows to efficiently address various problems. Given a partition Xn:= {xi:a=x0<x1<· · · <xn=b}of a bounded interval I:= [a,b],C2(I)-continuous cubic splines can be constructed by decomposing each interval Ii:= [xi,xi+1], 0 ≤i≤n−1, into three micro-intervals after inserting two new knots [1,2]. More recently, the same idea has been used in [3,4] to address the problem of Hermite interpolation with this kind of cubic splines. In both papers, the constructed spline is expressed in each sub-interval Ii, in terms of its function and derivative values up to order two at the knots xiand xi+1. The spline is written as a linear combination of a set of basis functions. In [3], the considered basis is a classical Hermite basis, which means that the basis functions are not all non-negative, while the authors in [4] have provided a strategy to construct normalized B-spline-like bases, i.e., the basis functions form a partition of unity, are compactly supported and are all non-negative. These properties ensure both numerical stability and local control of the constructed spline. This approach is somewhat complicated, and may be seen as a special case of the approach used in this work. The idea of inserting a split knot was first proposed in [5] which is considered as the univariate case of the Powell–Sabin (PS-)split [6,7]. It is widely used to approximate n-variate functions. In the case n=2, this refinement into six microtriangles was introduced in [8] to construct C1-quadratic interpolating splines, leading to intensive research, in which the construction of B-spline-like function bases introduced in [9] should be highlighted. The cubic case was considered ∗Corresponding author at: Department of Applied Mathematics, University of Granada, Campus de Fuentenueva s/n, 18071 Granada, Spain. E-mail addresses: [email protected] (D. Barrera), [email protected] (S. Eddargani), [email protected] (A. Lamnii). https://doi.org/10.1016/j.cam.2022.114834 0377-0427/©2022 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons. org/licenses/by-nc-nd/4.0/). D. Barrera, S. Eddargani and A. Lamnii Journal of Computational and Applied Mathematics 420 (2023) 114834 in [10–14]. Quartic splines were also discussed in [15,16]. Spaces of quintic and sextic bivariate splines were analyzed in [17,18]. In [19,20], normalized bases for PS-splines of degree 3r−1 and super-splines of arbitrary degree are given, respectively (see also [21,22]). In the case n=3, the construction of C1-quadratic interpolants is given in [23]. Each tetrahedron in the tessellation is subdivided into 24 subtetrahedra in a specific way. This problem for a PS-refinement of a tessellation of s-simplices in Rsobtained by decomposing each of them into smaller simplices is addressed in [24]. Regarding the univariate case, quasi-interpolation operators expressed in Bernstein form are more suitable. In fact, the Bernstein basis of degree drelative to an interval Iis the best basis in Pdrestricted to I, according to the concept of optimal normalized totally positive basis [25,26]. Moreover inserting additional knots is often used to incorporate shape parameters in order to construct approximating splines that preserve convexity or monotonicity to given data [5]. Shapepreserving properties for the cubic spline space proposed in this work can be achieved by imposing conditions on the location of the new inserted knots to achieve simpler results than those available when using spaces without split points. Inserting new knots is used also in the bivariate case to preserve convexity [27]. We consider a space of C1continuous cubic splines on a refined partition with C2super-smoothness conditions at the set of split points recently introduced in [7], where a general framework for quasi-interpolation based on the cubic B-splines has been developed in [7]. The provided quasi-interpolating splines are C1continuous on I, and C2at the set of split points. The aim of this work is to provide a rule that will enforce the C2smoothness conditions at the set of knots, and later, on the whole domain. Motivated by [28], we develop a subdivision rule by means of blossom which provides the coefficients of the B-spline-like representation on the finer partition (twice-split) written as convex combinations of the B-spline-like coefficients on the former partition (simple-split). The convexity property is useful because it allows to get a stable computation and makes the subdivision geometrically intuitive. By means of the derived subdivision rule, we can provide a C2quasi-interpolating spline defined on the twice-refined partition like those splines in [3,4] but with a lower set of functional data. In this work, we reduce the computational cost by considering a simple refinement of Xnobtained by introducing a single split point in each element of Xn. Then, a reduced space of C2cubic splines is defined from function values and first derivative values at the knots and from function values at the inserted split points. In summary, full smoothness is preserved and the number of degrees of freedom is reduced, so that the computational cost diminishes. The paper is organized as follows. In Section 2, we provide some preliminaries on Bernstein–Bézier form and polar forms. Section 3is devoted to introduce the space of C1cubic splines, to provide a representation of B-splines and to derive a rule that ensures the global C2smoothness on the whole domain. The theoretical results are confirmed by some numerical tests. In Section 4, subdivision rules are derived for the provided B-spline representation. Also some numerical tests are proposed to illustrate the convergence of the derived rules. 2. Preliminaries In general, Sr d(Xn)will denote the space of Crpolynomial splines of degree don Xn, i.e. Sr d(Xn):= {s∈Cr(I):s|Ii∈Pd,i=0,...,n−1}, where Pdstands for the space of polynomials of degree less than or equal to d. The restriction of each element sof Sr d(Xn)to an interval Iiis a polynomial. Then, it can be represented in the Bernstein basis relative to Iiby using the barycentric coordinates (1−t,t) with respect to Ii, i.e. x=(1−t)xi+txi+1holds. Using the notations |α|:= α1+α2for the length of a multi-index α:= (α1, α2)with non-negative integer entries and α! := α1!α2!, the Bernstein polynomials Bd α,iof degree drelative to Iiis given by Bd α,i(x)=d! α!(1−t)α1tα2,|α|=d.(1) Each polynomial Bd α,iis non-negative whenever 0 ≤t≤1, i.e. when x∈Ii. Each polynomial p∈Pdcan be expressed on Iias a convex combination of polynomials Bd α,i, so that there exist coefficients bα,i,|α|=d, such that p=∑ |α|=d bα,iBd α,i. It is the Bernstein–Bézier (BB-) representation of pand its coefficients are said to be the Bézier (B-) ordinates or Bernstein– Bézier (BB-) coefficients of prelative to Ii. They are linked to the domain points Λα,i:= α1 dxi+α2 dxi+1. By linking each B-ordinate bα,iwith the domain point Λα,i, the BB-representation can be displayed schematically as shown in Fig. 1 for the case of cubic polynomials. The piecewise linear interpolant of the control points cα,i:= (Λα,i,bα,i)is said to be the control net. It is tangent to the polynomial curve at the two knots xiand xi+1. The B-ordinates bα,ican be explicitly determined from the polar form or blossom B[p][29], i.e. the unique symmetric multi-affine polynomial B[p] : Rd→Rfulfilling the diagonal property B[p](x[d])=p(x), where x[d]means that the point xis repeated dtimes as an argument of the polar form, omitting the term [d]when d=1. More specifically, it holds bα,i=B[p](xi[α1],xi+1[α2]). 2 D. Barrera, S. Eddargani and A. Lamnii Journal of Computational and Applied Mathematics 420 (2023) 114834 Fig. 1. Schematic representation of the domain points and B-ordinates of a cubic polynomial. Another very useful practical utility of polar forms is the computation of the B-ordinates of the restriction of a polynomial pto a sub-interval of Ifrom the ones of prelative to I. For a sub-interval ˜ I= [c1,c2]of I, with c1and c2having barycentric coordinates σi=(σi 1, σi 2),i=1,2, with respect to I, then the B-ordinates ˜ bαof pon ˜ Ican be determined in the following form: ˜ bα,i=B[p](σ1[α1], σ2[α2]).(2) Also the De Casteljau’s algorithm is used to calculate the blossom in a stable way. Only convex combinations are produced: B[p](τ1, . . . , τd)=b[d] (0,0), where b[0] α=bα,i,for |α| = d, b[r] α=τr 1b[r−1] α+e1+τr 2b[r−1] α+e2,for |α| = d−r,and r=1,...,d, with e1:= (1,0) and e2:= (0,1). For details, see [7]. 3. Reduced C2cubic splines space In what follows, we start from a space of C1cubic splines and then a rule to achieve C2regularity on an arbitrary partition is given. 3.1. C1Cubic splines Let ˜ Xnbe the refinement of Xnobtained by inserting in every Iia split point ξi. We focus on the subspace S1,2 3(˜ Xn)of S1 3(˜ Xn)resulting when C2smoothness at the inserted knots [7] is required, i.e. S1,2 3(˜ Xn):= {s∈S1 3(˜ Xn):s∈C2(ξ)}, where ξ:= {ξi}n−1 i=1is the set of the inserted split points. Hereafter, the elements of Xnwill be called knots, while we will refer to the inserted points ξias inner split points. A spline s∈S1,2 3(˜ Xn)can be uniquely characterized by specifying two particular values for each knot of Xn, and one value for each interval induced by Xn. Theorem 1. Given values f 0 i, and f 1 i,0≤i≤n, and gi,0≤i≤n−1, there exists a unique spline s ∈S1,2 3(˜ Xn)such that s(xi)=f0 i,s′(xi)=f1 i(3) for every knot xiof Xnand s(ξi)=gi(4) for every interval Ii. Proof. It suffices to show how the B-ordinates of the solution s∈S1,2 3(˜ Xn)of this non standard interpolation problem are obtained for each macro-interval Ii. On each of the two micro-intervals Ji,1:= [xi, ξi]and Ji,2:= [ξi,xi+1]the spline sis a polynomial of degree 3, which can be represented from its B-ordinates. They are shown in Fig. 2. Any reference to Iiis omitted. The B-ordinates d0,d1,d2and d3indicated by (•)are provided by the conditions in (3) on the values of the spline and its first derivative at knots xiand xi+1. The interpolation condition at ξigiven in (4) allows to compute the B-ordinate d4indicated by (▲). The remaining B-ordinates d5and d6indicated by (◦), are computed from C2smoothness at ξi. More precisely, let pbe a quadratic polynomial defined on the segment [2xi+ξi 3,ξi+2xi+1 3]. The B-ordinates of pare b(2,0) =d1,b(1,1) =1 2τi,1τi,2(d4−τ2 i,1d1−τ2 i,2d2) and b(0,2) =d2, where, τi,1and τi,2=1−τi,1are the barycentric coordinates of ξiwith respect to Ii. After subdivision and by using (2), it follows that d5=B[p]((1,0),(τi,1, τi,2))and d6=B[p]((τi,1, τi,2),(0,1)). It holds d5=τi,1d1+τi,2b(1,1) and d6=τi,1b(1,1) +τi,2d2, which concludes the proof. □ 3 D. Barrera, S. Eddargani and A. Lamnii Journal of Computational and Applied Mathematics 420 (2023) 114834 Fig. 2. A schematic representation of the B-ordinates involved in Theorem 1. Having proved the unisolvency of the interpolation problem, we consider how to represent its unique solution. To do so, we construct B-spline-like functions (B-splines for short) Dkn i,(ℓ,m),ℓ, m∈N, ℓ +m=1, and Dsp kin order to express any spline s∈S1,2 3(˜ Xn)in the form s= n ∑ i=0∑ ℓ+m=1 ckn i,(ℓ,m)Dkn i,(ℓ,m)+ n−1 ∑ k=0 csp kDsp k.(5) The superscripts ‘‘kn’’ (knot) and ‘‘sp’’ (split) are used to distinguish between B-splines with respect to a knot and a split point, respectively. A B-spline with respect to a split point can also be designated as a B-spline with respect to the interval in which the split point is located. We now show how to construct suitable B-splines Dkn i,(ℓ,m)and Dsp kfor the knot xiand the interval Ik, respectively. The construction used herein is entirely based on the choice of a single interval Wi:= [Wi,1,Wi,2]for every knot xiin Xn (see [7]). For each interior knot xi, define Wi,1:= 2 3xi−1+1 3xiand Wi,2:= 2 3xi+1+1 3xi.(6) One possibility to choose Wiis to consider the segment of minimal length that ensures the non-negativity of B-splines Dkn i,(ℓ,m)[7]. In general, the choice depends on the problem being addressed, for more details see [30]. Equipped with Wi, we introduce four parameters corresponding to the knot xi. Let (αi,(1,0), αi,(0,1))be the barycentric coordinates of xiw.r.t. Wi. This is the unique pair satisfying αi,(1,0)Wi,1+αi,(0,1)Wi,2=xi, αi,(1,0) +αi,(0,1) =1. Furthermore, let (βi,(1,0), βi,(0,1))be the directional barycentric coordinates of the vector −→ xw.r.t. Wi. This is the unique pair such that βi,(1,0)Wi,1+βi,(0,1)Wi,2=1, βi,(1,0) +βi,(0,1) =0. We define the B-spline basis for S1,2 3(˜ Xn)in terms of conditions (3) and (4) provided in Theorem 1. The definition of the B-splines Dkn i,(ℓ,m),ℓ+m=1, corresponding to the knot xiis based on αi,(ℓ,m)and βi,(ℓ,m): at xiwe set Dkn i,(ℓ,m)(xi)=αi,(ℓ,m),(Dkn i,(ℓ,m))′(xi)=βi,(ℓ,m), and Dkn i,(ℓ,m)(xj)=0,(Dkn i,(ℓ,m))′(xj)=0 at any knot xjof Xndifferent from xi. Moreover, if τi,1and τi,2are convex weights such that ξi=τi,1xi+τi,2xi+1, then we set the values in condition (4) to zero except B[Dkn i,(ℓ,m)](ξi[3])=τ2 i,1(αi,(ℓ,m)+βi,(ℓ,m) ξi−xi 3) and B[Dkn i,(ℓ,m)](ξi−1[3])=τ2 i−1,2(αi,(ℓ,m)+βi,(ℓ,m) ξi−1−xi 3). Similarly, we define the B-spline Dsp kcorresponding to Ikby the setting all values in (3) and (4) to zero, except the following one: B[Dsp k](ξk[3])=2τk,1τk,2. Fig. 3 shows the typical plots of B-splines Dkn i,(1,0) and Dkn i,(0,1) associated with the interior knot xi, as well as the B-spline Dsp krelative to the split point ξk. Once constructed the B-splines as solutions of the corresponding interpolation problems, one needs to give the explicit expressions of coefficients ckn i,(ℓ,m)and csp kin the BB-representation (5) of s∈S1,2 3(˜ Xn). This is achieved by means of polar forms of restrictions of sto specific intervals of Xn. To be precise, for any interval Jiof Xnwith an end-point at xi, it holds ckn i,(ℓ,m)=B[s|Ji](xi[2],xi−1[ℓ],xi+1[m]).(7) 4 D. Barrera, S. Eddargani and A. Lamnii Journal of Computational and Applied Mathematics 420 (2023) 114834 Fig. 3. B-splines with respect to the knot xi(left), and the split point ξk(right). Note that the above blossom value can be evaluated in terms of sand its first derivative at the knot xi, namely B[s|Ji](xi[2],xi−1)=s(xi)+2 3s′(xi) (xi−1−xi) and B[s|Ji](xi[2],xi+1)=s(xi)+2 3s′(xi) (xi+1−xi). This confirms that the value of ckn i,(ℓ,m)is independent of the choice of Ji. Regarding the coefficient csp kcorresponding to Ik, it is satisfied that csp k=B[s|Jk](xk,xk+1, ξk).(8) To understand the super-smoothness condition C2at the knots in Xnfor C1cubic splines that we will explore later, we now review the Bernstein–Bézier representation of srestricted to an interval induced by ˜ Xn. Let Ji,1=[xi, ξi]be the left sub-interval of Ii. The blossom value providing the B-ordinate of s|Ji,1corresponding to the knot xiis given by B[s|Ji,1](xi[3])=∑ ℓ+m=1 αi,(ℓ,m)ckn i,(ℓ,m). The B-ordinate corresponds to the domain point 2 3xi+1 3ξiand is equal to B[s|Ji,1](xi[2], ξi)=∑ ℓ+m=1(αi,(ℓ,m)+βi,(ℓ,m) ξi−xi 3)ckn i,(ℓ,m).(9) Note that the weights in the sum (9) are the barycentric coordinates of the 2 3xi+1 3ξiw.r.t. Wi. Furthermore, the B-ordinate corresponding to the split point ξiis B[s|Ji,1](ξi[3])=τ2 i,1B[s|Ji,1](xi, ξi[2])+τ2 i,2B[s|Ji,2](xi+1, ξi[2])+2τi,1τi,2csp k, where Ji,2=[ξi,xi+1]. The B-ordinate corresponding to the domain point 1 3xi+2 3ξiis a convex combination of certain B-ordinates associated with the domain points 2 3xi+1 3ξiand ξi. Indeed, it is given by B[s|Ji,1](xi, ξi[2])=τi,1B[s|Ji,1](xi[2], ξi)+τi,2csp i. In summary, Remark 1. Boundary B-spline-like bases for S1,2 3(˜ Xn)are constructed according to the same procedure outlined for interior points. The B-spline-like w.r.t. vertex a=x0(resp. b=xn) is constructed with a particular choice of the interval W0(resp. Wn). Namely, W0,1:= x0and Wn,2:= xn. Remark 2. Here, we show the relationship between the B-splines considered in this paper and the classical Hermite basis. Let ϕiand ψibe the unique functions in S1,2 3(˜ Xn)satisfying the interpolation conditions ϕi(xj)=δij, ϕ′ i(xj)=0,j=0,...,n, ψi(xj)=0, ψ′ i(xj)=δij,j=0,...,n, where δstands for Kronecker’s delta. 5 D. Barrera, S. Eddargani and A. Lamnii Journal of Computational and Applied Mathematics 420 (2023) 114834 Fig. 4. The classical Hermite basis functions ϕiand ψiof the space S1,2 3(˜ Xn). The B-splines Dkn i,(ℓ,m),ℓ+m=1, are convex combinations of the classical Hermite basis functions (see Fig. 4). Namely, Dkn i,(ℓ,m)=αi,(ℓ,m)ϕi+βi,(ℓ,m)ψi. It can be proved that the B-splines considered here are convex combination of the B-splines lying in the space of cubic splines having double knots at knots xiand simple knots at inner points ξi. For more details, see [31, ch. 9]. 3.2. Rule to achieve C2smoothness at the set of knots Consider a linear operator Qof the form Qf:= n ∑ i=0∑ ℓ+m=1 ψkn i,(ℓ,m)(f)Dkn i,(ℓ,m)+ n−1 ∑ k=0 ψsp k(f)Dsp k,(10) which associates with a given function fa spline in S1,2 3(˜ Xn). It is based on the choice of linear functionals ψkn i,(ℓ,m)and ψsp kcorresponding to knots and intervals, respectively. Motivated by (7) and (8), we consider the linear functionals ψkn i,(ℓ,m) and ψsp kgiven by ψkn i,(ℓ,m)(f)=B[Ikn i,(ℓ,m)f](xi[2],xi−1[ℓ],xi+1[m]), ψsp k(f)=B[Isp kf](xk,xk+1, ξk),(11) for some linear operators Ikn i,(ℓ,m)and Isp kthat map a function fto cubic polynomials Ikn i,(ℓ,m)fand Isp kf. To guarantee the locality property of the quasi-interpolant, we assume that the data-sites of the scattered data used to construct ψkn i,(ℓ,m) (resp. ψsp k) belong to the support of Dkn i,(ℓ,m)(resp. Dsp k) and allow us to construct a local linear polynomial operator Ikn i,(ℓ,m) (resp. Isp k) reproducing the space of cubic polynomials [2,7,17,18,32], i.e., Ikn i,(ℓ,m)f=fand Isp kf=ffor all f∈P3. One can choose the operators Ikn i,(ℓ,m)and Isp kas Lagrange or Hermite interpolation operators. In what follows, we provide an approach that enables us to get C2smoothness at the knots in Xn. We start by observing from (7),(10) and (11) that B[Ikn i,(ℓ,m)f|Ji,1](xi[2],xi−1[ℓ],xi+1[m])=B[Qf|Ji,1](xi[2],xi−1[ℓ],xi+1[m]), B[Isp kf|Jk,1](xk,xk+1, ξk)=B[Qf|Jk,1](xk,xk+1, ξk). As the following result shows, C2smoothness can be achieved by specifying a cubic polynomial that connect the local operators acting in the closest neighborhood of the knot. Theorem 2. Let Qf be defined by (10), and let xibe a knot of Xn. Assume that there exists a polynomial p ∈P3such that the following requirements are met: 1. The operator Ikn i,(ℓ,m),ℓ+m=1, corresponding to xisatisfies Ikn i,(ℓ,m)f(xi)=p(xi),(Ikn i,(ℓ,m)f)′(xi)=p′(xi).(12) 2. The operators Isp i−1and Isp icorresponding to the intervals Ii−1and Iiwith an end-point at xi−1and xi, respectively, satisfy the conditions Isp i−1f(ξi−1)=p(ξi−1),(13) Isp if(ξi)=p(ξi).(14) 6 D. Barrera, S. Eddargani and A. Lamnii Journal of Computational and Applied Mathematics 420 (2023) 114834 Then, Qf is C2-continuous at xi. Proof. We need to prove that (Qf)′′ (xi)=p′′ (xi). Recall that, D2 ξi−xiQf|Ji,1(xi)=6B[Qf|Ji,1](xi,(ξi−xi)[2]) =6(−2B[Qf|Ji,1](xi[2], ξi)+B[Qf|Ji,1](xi, ξi[2])+B[Qf|Ji,1](xi[3])). and, D2 xi−ξi−1Qf|Ji−1,2(xi)=6B[Qf|Ji−1,2](xi,(xi−ξi−1)[2]) =6(−2B[Qf|Ji−1,2](xi[2], ξi−1)+B[Qf|Ji−1,2](xi, ξi−1[2])+B[Qf|Ji−1,2](xi[3])). More precisely, we need to prove that D2 ξi−xiQf|Ji,1(xi)=6(−2B[p](xi[2], ξi)+B[p](xi, ξi[2])+B[p](xi[3])) , and, D2 xi−ξi−1Qf|Ji−1,2(xi)=6(−2B[p](xi[2], ξi−1)+B[p](xi, ξi−1[2])+B[p](xi[3])) , where the blossom values of pare all independent of Ji,1and Ji−1,2, respectively. To this end, we consider the blossom values B[Qf|Ji,1](xi[2], ξi),B[Qf|Ji,1](xi, ξi[2]),B[Qf|Ji−1,2](xi[2], ξi−1)and B[Qf|Ji−1,2](xi, ξi−1[2]) that will help us to express the second order derivatives of Qf|Ji,1and Qf|Ji−1,2at the knot xi. The blossom value B[Qf|Ji,1](xi[2], ξi)is the B-ordinate of Qf|Ji,1on Ji,1corresponding to the domain point 2 3xi+1 3ξi (9), i.e. B[Qf|Ji,1](xi[2], ξi)=∑ ℓ+m=1(αi,(ℓ,m)+βi,(ℓ,m) ξi−xi 3)B[Ikn i,(ℓ,m)f](xi[2],xi−1[ℓ],xi+1[m]). The weights αi,(ℓ,m)+βi,(ℓ,m)ξi−xi 3are the barycentric coordinates of the point 2 3xi+1 3ξiw.r.t. Wi, which implies that they are also the barycentric coordinates of the point ξiw.r.t. the interval [xi−1,xi+1]. Hence, throughout multi-affinity of the blossom and by (12), one can obtain B[Qf|Ji,1](xi[2], ξi)=B[Ikn i,(ℓ,m)f](xi[2], ξi)=B[p](xi[2], ξi). Considering the B-ordinate of Qf|Ji,1corresponding to the domain point 1 3xi+2 3ξi, it holds B[Qf|Ji,1](ξi[3])=τ2 i,1B[Qf|Ji,1](xi[2], ξi)+2τi,1τi,2B[Qf|Ji,1](xi,xi+1, ξi)+τ2 i,2B[Qf|Ji,1](xi+1[2], ξi) and B[Qf|Ji,1](xi,xi+1, ξi)=−τi,1 τi,2 B[Qf|Ji,1](xi[2], ξi)+1 τi,2 B[Qf|Ji,1](xi, ξi[2]), so that B[Qf|Ji,1](xi, ξi[2])=τi,1 2B[Qf|Ji,1](xi[2], ξi)+1 2τi,1 B[Qf|Ji,1](ξi[3])−τ2 i,2 2τi,1 B[Qf|Ji,1](xi+1[2], ξi). From (13), we get B[Qf|Ji,1](xi, ξi[2])=τi,1 2B[p](xi[2], ξi)+1 2τi,1 p(ξi)−τ2 i,2 2τi,1 B[p](xi+1[2], ξi) =B[p](xi, ξi[2]), This proves that limx→xi,x>xi(Qf )′′ (x)=p′′ (xi). It only remains to prove that limx→xi,x<xi(Qf )′′ (x)=p′′ (xi). By the same approach used for the right case, the blossom value B[Qf|Ji−1,2](xi[2], ξi)is the B-ordinate of Qf|Ji−1,2on Ji−1,2 corresponding to the domain point 2 3xi+1 3ξi−1(9), i.e. B[Qf|Ji−1,2](xi[2], ξi−1)=∑ ℓ+m=1(αi,(ℓ,m)+βi,(ℓ,m) xi−ξi−1 3)B[Ikn i,(ℓ,m)f](xi[2],xi−1[ℓ],xi+1[m]). In this case, the weights αi,(ℓ,m)+βi,(ℓ,m) xi−ξi−1 3relative to the barycentric coordinates of point 2 3xi+1 3ξi−1w.r.t. Wi, which implies that they are also the barycentric coordinates of point ξi−1w.r.t. the interval [xi−1,xi+1]. By using (12), one gets B[Qf|Ji−1,2](xi[2], ξi−1)=B[Ikn i,(ℓ,m)f](xi[2], ξi−1)=B[p](xi[2], ξi−1). 7 D. Barrera, S. Eddargani and A. Lamnii Journal of Computational and Applied Mathematics 420 (2023) 114834 Fig. 5. Plots of tests functions: f1(left), f2(center) and f3(right). Considering the condition (14) corresponding to the interval Ii−1, i.e., Isp i−1f(ξi−1)=p(ξi−1), the blossom B[Qf|Ji−1,2](xi, ξi−1[2])can be expressed as follows: B[Qf|Ji−1,2](xi, ξi−1[2])=τi−1,1 2B[p](xi−1[2], ξi−1)+1 2τi−1,1 p(ξi−1)−τ2 i−1,2 2τi−1,1 B[p](xi[2], ξi−1) =B[p](xi, ξi−1[2]). This confirms that (Qf)′′ (xi)=p′′(xi). □ Next, we provide a rule to choose the operators Ikn i,(ℓ,m)and Isp kin such a way that the conditions in Theorem 2 are fulfilled. For each 0 ≤i≤n, let Ikn ifbe the cubic polynomial such that Ikn if(xi)=f(xi),Ikn if′(xi)=f′(xi),Ikn if(ξi−1)=f(ξi−1) and Ikn if(ξi)=f(ξi), and Qfbe defined by (10). •For every knot xi, take Ikn i,(ℓ,m)f=Ikn if,ℓ+m=1. •Take Isp kf=Ikn kf, where Ikn kfis associated with xk, which is the first end-point of Ik. These choices ensure that Qf∈S2 3(˜ Xn). Approaches to get bivariate C2cubic splines on a 6-split have been discussed in [33]. 3.3. Numerical results This section provides some numerical results to illustrate the performance of the above quasi-interpolation operators. To this end, we will use the test functions f1(x)=3 4e−2(9x−2)2−1 5e−(9x−7)2−(9x−4)2+1 2e−(9x−7)2−1 4(9x−3)2+3 4e1 10 (−9x−1)−1 49 (9x+1)2, f2(x)=1 2xcos4(4(x2+x−1)), f3(x)=x4e−3x2+1 x6+1, whose plots appear in Fig. 5. The two first functions are the 1D versions of Franke [34] and Nielson [35] functions. Let us consider the interval I=[0,1]. The tests are carried out for a sequence of uniform mesh Xnassociated with the knots xi=ih,i=0, . . .,n, where h=1 n. The inserted split points are chosen as the middle points of the macro-intervals, i.e., ξi=(i+1 2)h,i=0, . . .,n−1. For each i=0, . . .,n, we have Ikn if(x)=f(ξi−1)B3 (3,0),[ξi−1,ξi]+1 3(2(ξi−1−ξi)f′(xi)−2f(ξi−1)+f(ξi)+4f(xi))B3 (2,1),[ξi−1,ξi] +1 3(2(ξi−ξi−1)f′(xi)+f(ξi−1)−2f(ξi)+4f(xi))B3 (1,2),[ξi−1,ξi]+f(ξi)B3 (0,3),[ξi−1,ξi]. It interpolates the value and the first derivative value of fat xiand the function values of fat ξi−1and ξi. From this choice, the linear functionals ψkn i,(ℓ,m)and ψsp kwill be given by the following expressions: ψkn i,(1,0)(f)=f(i n)−2 3nf′(i n), ψkn i,(0,1) (f)=f(i n)+2 3nf′(i n), 8 D. Barrera, S. Eddargani and A. Lamnii Journal of Computational and Applied Mathematics 420 (2023) 114834 Table 1 Estimated errors for functions f1,f2and f3, and NCOs with different values of n. nEn(f1)NCO En(f2)NCO En(f3)NCO 16 3.2851 ×10−3– 8.3227 ×10−3– 6.5942 ×10−6– 32 3.8209 ×10−43.10 5.1442 ×10−44.01 4.1899 ×10−73.97 64 2.1478 ×10−54.15 2.9507 ×10−54.12 2.5085 ×10−84.06 128 9.9300 ×10−74.43 1.8595 ×10−63.98 1.4689 ×10−94.09 256 7.5323 ×10−83.72 1.1592 ×10−74.00 9.9866 ×10−11 3.87 Table 2 Quasi-interpolation errors and NCOs for the test function g1with different values of n. nEn(g1)NCO Method in [36] NCO 16 2.1352 ×10−8– 3.25116 ×10−7– 32 1.3627 ×10−93.96 2.13504 ×10−83.92862 64 8.6021 ×10−11 3.98 1.36452 ×10−93.96779 128 5.4025 ×10−12 3.99 8.61907 ×10−11 3.98472 Table 3 Quasi-interpolation errors and NCOs for the test function g2with different values of n. nEn(g2)NCO Method in [37] NCO 64 2.1282 ×10−7– 4.11124 ×10−6– 128 1.3140 ×10−84.01 2.59629 ×10−73.98505 256 7.3024 ×10−10 4.16 1.62327 ×10−83.99948 512 5.2902 ×10−11 3.78 1.01501 ×10−93.99934 ψsp i(f)=1 2nf′(i n)+1 3(f(2i−1 2n)+f(i n)+f(2i+1 2n)). The quasi-interpolation error is estimated as En(f)=max 0≤ℓ≤200 |Qf(zℓ)−f(zℓ)|,(15) where zℓ,ℓ=0, . . ., 200, are equally spaced points in I. The estimated numerical convergence order (NCO) is given by the rate NCO := log (En1 En2) log (n2 n1). In Table 1, the estimated quasi-interpolation errors and NCOs for functions f1,f2and f3are shown. In what follows, a comparison between the numerical results obtained by the proposed C2cubic spline quasiinterpolating scheme and the results presented in [36,37] is done. In them, the following test functions are considered: g1(x)=sin x,and g2(x)= −1 2(exp (x3 2)−1)cos(3πx). In Tables 2 and 3, we list the resulting errors and NCOs for the approximation of functions g1and g2, respectively, by using the cubic spline quasi-interpolant proposed here and those in [36,37]. The proposed scheme improves the results in those papers by two orders of magnitude. 4. Spline spaces on twice-refined partitions In the previous section a C2cubic quasi-interpolant on a refinement ˜ Xnof the initial partition Xnby adding an additional knot at each macro-interval has been defined. That quasi-interpolant is written in terms of B-spline-like functions Dkn i,(ℓ,m), 0≤i≤n,ℓ+m=1, and Dsp k, 0 ≤k≤n−1. Let ˜ Xn,2be the refinement of the refined partition ˜ Xn,1:= ˜ Xnproduced in decomposing each sub-interval in ˜ Xn,1into two micro-intervals by inserting points ξi,1and ξi,2into˜ Ii,1:= [xi, ξi]and˜ Ii,2:= [ξi,xi+1], respectively. The sub-space S2 3(˜ Xn,1)of S1,2 3(˜ Xn,1)is refinable under the refinement ˜ Xn,2, i.e., a spline s∈S2 3(˜ Xn,1)is also an element of the finer space S2 3(˜ Xn,2). The computation of such a spline by refinement of the original refined partition, while retaining the cubic precision, is considered in this section. Indeed, we aim to express a spline sexpressed as in (5) using the same kind of representation but with respect to S2 3(˜ Xn,2). The coefficients related with the finer partition ˜ Xn,2are written in terms of coefficients ckn i,(ℓ,m)and csp kassociated with the partition ˜ Xn,1. The subdivision rules presented in this section are valid for 9