Well, I'm using Wolfram Mathematica for a universitary project, as the title says. I need to define the trajectory of an object, which moves in a tri-dimensional space. I chose eight control points and I got the right curve with "BSplineCurve" command, plotted with "Graphics3D". But I need an approximate function (which should be my curvilinear abscissa) for that curve in order to get its parametric equations, and I don't understand how to do it. I should find something like: s=s(t) -> x=x(s), y=y(s), y=y(s). Here in the screenshot you can see the spline curve and what I got trying the command "BSplineFunction". Can anyone help me?
2026-02-22 19:05:14.1771787114
Approximate spline equation with Wolfram Mathematica
442 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in APPROXIMATION
- Does approximation usually exclude equality?
- Approximate spline equation with Wolfram Mathematica
- Solving Equation with Euler's Number
- Approximate derivative in midpoint rule error with notation of Big O
- An inequality involving $\int_0^{\frac{\pi}{2}}\sqrt{\sin x}\:dx $
- On the rate of convergence of the central limit theorem
- Is there any exponential function that can approximate $\frac{1}{x}$?
- Gamma distribution to normal approximation
- Product and Quotient Rule proof using linearisation
- Best approximation of a function out of a closed subset
Related Questions in 3D
- Visualization of Projective Space
- Approximate spline equation with Wolfram Mathematica
- Volume of sphere split into eight sections?
- Largest Cube that fits the space between two Spheres?
- Is $ABC$ similar with $A'B'C'$, where $A', B', C'$ are the projections of $A, B, C $ on a plane $\pi $.
- Intersection of a facet and a plane
- Distance from center of sphere to apex of pyramid?
- Looking for hints on the below 3D geometry problem.
- Finding the Euler angle/axis from a 2 axes rotation but that lies on the original 2 axes' plane
- Calculating the tangent line from a point to the surface of a sphere
Related Questions in MATHEMATICA
- Entscheidungsproblem
- checking for sufficient condition for an unconstrained maximization problem.
- Does Mathematica have a function for the composite numbers not divisible by a squared prime?
- May someone of you provide me (if possible) an expression for the F.T. of $\tan(x)$?
- What does the floating point arithmetic contribute to the rounding error in Mathematica?
- Is it possible to obtain the closed-form expression of this differential equation?
- Numerical integration of triple integral
- Using Mathematica to find arc length of implicit function
- How to make a number out of other numbers in mathematica?
- Is there a way to solve a very complicated equation in one variable?
Related Questions in SPLINE
- Almost locality of cubic spline interpolation
- inhomogeneous coordinates to homogeneous coordinates
- Can the relocation of one control point of a NURBS curve be compensated by an adjustment of some weights?
- How to construct a B-spline from nodal point in Matlab?
- Evaluation the interpolation polynomial at $x$
- Book suggestions on B-spline method for solving differential equations
- C2 continuous Bezier contour.
- Formula for the partial derivative of a bivariate tensor-product spline on a grid of points
- Integral of two zero-order spline basis functions
- Cubic Spline Interpolation - Solve X from Y
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
The reference for BSplineFunction says it constructs a B-spline using the supplied list as control points.
The B-spline article at MathWorld shows the equation of the curve, $$\mathbf{C}(t) = \sum_{i=0}^{n} \mathbf{P}_i N_{i, p}(t)\tag{1}\label{NA1}$$ where $p$ is the degree of the spline, $\mathbf{P}_0$ through $\mathbf{P}_n$ are your control points, and $N_{i, p}(t)$ are the basis functions (evaluated at $t$): $$\begin{array}{l} N_{i, p} = \begin{cases} 1 & \text{ if } t_i \le t \lt t_{i+1} \text{ and } t_i \lt t_i+1 \\ 0 & \text{ otherwise } \end{cases} \\ N_{i, j} = \frac{t - t_i}{t_{i+j} - t_i} N_{i, j-1}(t) + \frac{t_{i+j+1} - t}{t_{i+j+i} - t_{i+1}} N_{i+1, j-1}(t) \end{array}$$
The documentation even mentions that the Mathematica function
BSplineFunctionimplements these. The details on the reference page say that by default, theBSplineFunctionreturns cubic splines, i.e., $p = 3$, with the knots uniformly within $0 \dots 1$, with additional knots added so that the spline starts at the first control point, and ends at the last control point.If you have eight control points, then $n = 7$. If the spline is cubic, then $p = 3$. The degree of the spline is defined by $p = m - n - 1$, so $m = 9$, and you have a knot vector with twelve elements ($m = 11$). If the knots are uniformly within $0 \dots 1$, except with start and end knots, the knot vector is $$\mathbf{T} = \left\lbrace t_0, t_1, t_2, \dots, t_9, t_10, t_11 \right\rbrace = \left\lbrace 0, 0, 0, \frac{1}{7}, \frac{2}{7}, \frac{3}{7}, \frac{4}{7}, \frac{5}{7}, \frac{6}{7}, 1, 1, 1 \right\rbrace$$
With these, you can find the explicit form of $\eqref{NA1}$, by evaluating $N_{i,j}$ for $i = 0 \dots 7$ and $j = 0 \dots 3$.
Note, however, that $\mathbf{C}(t)$ is defined piecewise.
If you prefer, you can use "knot insertion" (as outlined by this answer by Bubba) to elevate each knot to degree 3 (yielding a knot vector $\mathbf{T} = \left\lbrace 0, 0, 0, \frac{1}{7}, \frac{1}{7}, \frac{1}{7}, \frac{2}{7}, \frac{2}{7}, \frac{2}{7}, \dots, 1, 1, 1 \right\rbrace$), which decomposes to cubic Bézier curves.
If you instead want a non-piecewise polynomial form, $$\mathbf{C}(t) = \sum_{i=0}^{N} \mathbf{Q}_i t^i$$ i.e. $$\mathbf{C}(t) = \left( x(t), y(t), z(t) \right)$$ $$\mathbf{Q}_i = \left( X_i , Y_i , Z_i \right)$$ $$x(t) = \sum_{i=0}^{N} X_i t^i$$ $$y(t) = \sum_{i=0}^{N} Y_i t^i$$ $$z(t) = \sum_{i=0}^{N} Z_i t^i$$ you need an approximation, fitting this form to a set of sampled points in your original curve. (I do not personally use Mathematica, so I don't know exactly how you'd do this, but perhaps the Fit function is a good place to start. The spline looks reasonably simple/smooth, so a lot of uniformly distributed points on it should work fine.)
What I do not understand, is why you didn't begin with this form in the first place. Seems like a convoluted way to do it.