level 3
駩爆🔥
楼主
接触mathematica没多久,最近想用B样条函数得到我需要的曲线方程,但BSplineFunction生成的函数是横纵坐标值关于t的函数,(t取0到1),我想得到图中y关于x的函数,有什么办法么?
另外,想求图上这个曲线在不同位置的曲率,应该怎么写?
pts1={{0,100},{200,100},{200,0}};
fend=BSplineFunction[pts1];
Show[Graphics[{Red,PointSize[0.03],Point[pts1],Green,Line[pts1]},Axes->True,AxesOrigin->{0,0},AxesLabel->{"x(mm)","y(mm)"},AxesStyle->Directive[Black,10]],ParametricPlot[fend[t],{t,0,1}]]

Plot[N[ArcCurvature[{fend[[1]][t],fend[[2]][t]},t]/.t->x],{x,0,1}]

2023年02月23日 00点02分
1
另外,想求图上这个曲线在不同位置的曲率,应该怎么写?
pts1={{0,100},{200,100},{200,0}};
fend=BSplineFunction[pts1];
Show[Graphics[{Red,PointSize[0.03],Point[pts1],Green,Line[pts1]},Axes->True,AxesOrigin->{0,0},AxesLabel->{"x(mm)","y(mm)"},AxesStyle->Directive[Black,10]],ParametricPlot[fend[t],{t,0,1}]]

Plot[N[ArcCurvature[{fend[[1]][t],fend[[2]][t]},t]/.t->x],{x,0,1}]




