(* Content-type: application/vnd.wolfram.mathematica *) (*** Wolfram Notebook File ***) (* http://www.wolfram.com/nb *) (* CreatedBy='Mathematica 13.3' *) (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 158, 7] NotebookDataLength[ 184244, 4785] NotebookOptionsPosition[ 177113, 4616] NotebookOutlinePosition[ 179245, 4676] CellTagsIndexPosition[ 179202, 4673] WindowTitle->InterpolatingFunctionToPiecewise | Example Notebook WindowFrame->Normal*) (* Beginning of Notebook Content *) Notebook[{ Cell[CellGroupData[{ Cell[TextData[{ "Basic Examples", "\[NonBreakingSpace]", Cell["(3)", "ExampleCount",ExpressionUUID-> "76a3d3fb-204d-4cd1-9dc9-18ee7a330b4d"], "\[NonBreakingSpace]" }], "Subsection", TaggingRules->{}, CellID->904125756,ExpressionUUID->"e515acdd-2aee-4c20-beaa-284bf0226213"], Cell[TextData[{ "Use ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["Interpolation", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/Interpolation", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "adbe7699-360d-4173-8057-20bf8c49ea2e"], " to generate an interpolating function from data:" }], "Text", TaggingRules->{}, CellID->159500805,ExpressionUUID->"b6166fe5-528d-44d9-bca3-984690968e6e"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"f", "=", RowBox[{"Interpolation", "[", RowBox[{"{", RowBox[{"1", ",", "2", ",", "3", ",", "5", ",", "8", ",", "5"}], "}"}], "]"}]}]], "Input", TaggingRules->{}, CellID->616621440,ExpressionUUID->"cdf659d0-9098-496e-8d29-08d26bbeb254"], Cell[BoxData[ InterpretationBox[ RowBox[{ TagBox["InterpolatingFunction", "SummaryHead"], "[", DynamicModuleBox[{Typeset`open$$ = False, Typeset`embedState$$ = "Ready"}, TemplateBox[{ PaneSelectorBox[{False -> GridBox[{{ PaneBox[ ButtonBox[ DynamicBox[ FEPrivate`FrontEndResource["FEBitmaps", "SummaryBoxOpener"]], ButtonFunction :> (Typeset`open$$ = True), Appearance -> None, BaseStyle -> {}, Evaluator -> Automatic, Method -> "Preemptive"], Alignment -> {Center, Center}, ImageSize -> Dynamic[{ Automatic, 3.5 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[ Magnification])}]], GraphicsBox[{{{{}, {}, TagBox[{ Directive[ Opacity[1.], RGBColor[0.368417, 0.506779, 0.709798], AbsoluteThickness[1]], LineBox[CompressedData[" 1:eJwB0QMu/CFib1JlAgAAADwAAAACAAAAOa+/FgAA8D+R6VQeAADwP0MXnDjc TfE/hbe4Dumv8T8aCmt4zbfyPxD3luj7Z/M/SCgOe8IJ9D/e/+qI3ur0P/Xm 5F4WVfU/aq76yOlR9j9uMK5gf7z2P3rzLcFAw/c/P6VLJewL+D+Yd5nBagv5 P92k2wdud/k/7Dh/trVf+j/5RJ/LTtz6P1P1MPT2oPs/bRA3UjMp/D+PhFL0 kcP8P61mwfYskv0/N27Gq2z3/T9F6B9eKuP+P2rWoYloEv8/LgVZU8MWAEAB VoE5+BIAQJ9bmwb8yQBAwVQp2aWoAEC9x0ebNnEBQFw6pn6tNQFAQXntvnsm AkCBewpgXdEBQAT7LFNw2AJAzR13OGRuAkByktbIZn4DQHKIy+TDBQNARm95 zWcyBECLvx3YnrADQMZhhrNq2gRAjpEOuo1XBECsmYwoeJAFQKVN+4/pFQVA 0qEsDjVDBkAzfRhIv9sFQKO/NtXz6QZASTEIWEqfBkDcIjorvZ4HQCOxZG6X gAdAwJunYohHCECoiPFijGwIQOPkrgoD7QhAmmgjejtxCUBtc69BiKAJQEou ZxQomwpAoxcaWg9ICkAeT+dnX78LQD8BfgGh/QpAHuG/PI4LDUAau3sZ4q8L QH6BMF5VYQ5AoIrjEiVWDEDFCqj0Ga4PQI2fRJtyCg1ApGk0Lh2TEEAmyg8F wrINQNJzcbjUSRFA/sR038BXDkAe6KygqQMSQDwF00jKCg9AKNLm2dPUEkAm W5uT1bEPQIraiucJnxNAO3uutnUzEEBgUv3Q070UQLlTRJQBiBBAfqYLF+z4 FUBWFCcq5doQQMKRtJNXLhdAp3eGB840EUCWIGIzFXoYQM7lmtW3iBFAGFnt OOKnGUCo9ivrpuMRQMQl63e74RpAoe8Jue08EkCLCNj8xQMcQHDznHc1kBJA wW/F+vb9HEDymax9guoSQI/+Nz5y8h1ASktxdNA+E0CzZRXnTLkeQMLkgiN2 kRNAQgnGdb5cH0DtIBEaIesTQN70yoRi5h9A7mdUAc0+FEBq918AuB4gQKJR FDB+mRRAplU3kAM1IEB2IyEXh/IUQN5xu3lgLyBAIADj7pBFFUDbYE/wcw8g QH1/IQ6gnxVAx9shMu2aH0CwCRUesPMVQLajB9+k4B5AljaFdcVOFkBsk2yn Vc0dQJtLQoUyqBZA/NwKD/FvHEB2a7SFoPsWQCUtUbIU3xpABC6jzRNWF0BX DkZVM9YYQGj7RgaIqhdAvAcpg5CaFkAyFFD6//8XQNWsZC8AABRAKCehrQ== "]]}, Annotation[#, "Charting`Private`Tag$3147791#1"]& ]}}, {}}, { DisplayFunction -> Identity, Ticks -> {Automatic, Automatic}, AxesOrigin -> {1., 0}, FrameTicks -> {{{}, {}}, {{}, {}}}, GridLines -> {None, None}, DisplayFunction -> Identity, PlotRangePadding -> {{ Scaled[0.1], Scaled[0.1]}, { Scaled[0.1], Scaled[0.1]}}, PlotRangeClipping -> True, ImagePadding -> All, DisplayFunction -> Identity, AspectRatio -> 1, Axes -> {False, False}, AxesLabel -> {None, None}, AxesOrigin -> {1., 0}, DisplayFunction :> Identity, Frame -> {{True, True}, {True, True}}, FrameLabel -> {{None, None}, {None, None}}, FrameStyle -> Directive[ Opacity[0.5], Thickness[Tiny], RGBColor[0.368417, 0.506779, 0.709798]], FrameTicks -> {{None, None}, {None, None}}, GridLines -> {None, None}, GridLinesStyle -> Directive[ GrayLevel[0.5, 0.4]], ImageSize -> Dynamic[{ Automatic, 3.5 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[ Magnification])}], Method -> { "DefaultBoundaryStyle" -> Automatic, "DefaultGraphicsInteraction" -> { "Version" -> 1.2, "TrackMousePosition" -> {True, False}, "Effects" -> { "Highlight" -> {"ratio" -> 2}, "HighlightPoint" -> {"ratio" -> 2}, "Droplines" -> { "freeformCursorMode" -> True, "placement" -> {"x" -> "All", "y" -> "None"}}}}, "DefaultMeshStyle" -> AbsolutePointSize[6], "ScalingFunctions" -> None, "CoordinatesToolOptions" -> {"DisplayFunction" -> ({ (Identity[#]& )[ Part[#, 1]], (Identity[#]& )[ Part[#, 2]]}& ), "CopiedValueFunction" -> ({ (Identity[#]& )[ Part[#, 1]], (Identity[#]& )[ Part[#, 2]]}& )}}, PlotRange -> {{1, 6}, {0., 8.103542811159809}}, PlotRangeClipping -> True, PlotRangePadding -> {{ Scaled[0.1], Scaled[0.1]}, { Scaled[0.1], Scaled[0.1]}}, Ticks -> {Automatic, Automatic}}], GridBox[{{ RowBox[{ TagBox["\"Domain: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox[ RowBox[{"{", RowBox[{"{", RowBox[{"1", ",", "6"}], "}"}], "}"}], "SummaryItem"]}]}, { RowBox[{ TagBox["\"Output: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["\"scalar\"", "SummaryItem"]}]}}, GridBoxAlignment -> { "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> False, GridBoxItemSize -> { "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings -> {"Columns" -> {{2}}, "Rows" -> {{Automatic}}}, BaseStyle -> { ShowStringCharacters -> False, NumberMarks -> False, PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, GridBoxAlignment -> {"Columns" -> {{Left}}, "Rows" -> {{Top}}}, AutoDelete -> False, GridBoxItemSize -> { "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, BaselinePosition -> {1, 1}], True -> GridBox[{{ PaneBox[ ButtonBox[ DynamicBox[ FEPrivate`FrontEndResource["FEBitmaps", "SummaryBoxCloser"]], ButtonFunction :> (Typeset`open$$ = False), Appearance -> None, BaseStyle -> {}, Evaluator -> Automatic, Method -> "Preemptive"], Alignment -> {Center, Center}, ImageSize -> Dynamic[{ Automatic, 3.5 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[ Magnification])}]], GraphicsBox[{{{{}, {}, TagBox[{ Directive[ Opacity[1.], RGBColor[0.368417, 0.506779, 0.709798], AbsoluteThickness[1]], LineBox[CompressedData[" 1:eJwB0QMu/CFib1JlAgAAADwAAAACAAAAOa+/FgAA8D+R6VQeAADwP0MXnDjc TfE/hbe4Dumv8T8aCmt4zbfyPxD3luj7Z/M/SCgOe8IJ9D/e/+qI3ur0P/Xm 5F4WVfU/aq76yOlR9j9uMK5gf7z2P3rzLcFAw/c/P6VLJewL+D+Yd5nBagv5 P92k2wdud/k/7Dh/trVf+j/5RJ/LTtz6P1P1MPT2oPs/bRA3UjMp/D+PhFL0 kcP8P61mwfYskv0/N27Gq2z3/T9F6B9eKuP+P2rWoYloEv8/LgVZU8MWAEAB VoE5+BIAQJ9bmwb8yQBAwVQp2aWoAEC9x0ebNnEBQFw6pn6tNQFAQXntvnsm AkCBewpgXdEBQAT7LFNw2AJAzR13OGRuAkByktbIZn4DQHKIy+TDBQNARm95 zWcyBECLvx3YnrADQMZhhrNq2gRAjpEOuo1XBECsmYwoeJAFQKVN+4/pFQVA 0qEsDjVDBkAzfRhIv9sFQKO/NtXz6QZASTEIWEqfBkDcIjorvZ4HQCOxZG6X gAdAwJunYohHCECoiPFijGwIQOPkrgoD7QhAmmgjejtxCUBtc69BiKAJQEou ZxQomwpAoxcaWg9ICkAeT+dnX78LQD8BfgGh/QpAHuG/PI4LDUAau3sZ4q8L QH6BMF5VYQ5AoIrjEiVWDEDFCqj0Ga4PQI2fRJtyCg1ApGk0Lh2TEEAmyg8F wrINQNJzcbjUSRFA/sR038BXDkAe6KygqQMSQDwF00jKCg9AKNLm2dPUEkAm W5uT1bEPQIraiucJnxNAO3uutnUzEEBgUv3Q070UQLlTRJQBiBBAfqYLF+z4 FUBWFCcq5doQQMKRtJNXLhdAp3eGB840EUCWIGIzFXoYQM7lmtW3iBFAGFnt OOKnGUCo9ivrpuMRQMQl63e74RpAoe8Jue08EkCLCNj8xQMcQHDznHc1kBJA wW/F+vb9HEDymax9guoSQI/+Nz5y8h1ASktxdNA+E0CzZRXnTLkeQMLkgiN2 kRNAQgnGdb5cH0DtIBEaIesTQN70yoRi5h9A7mdUAc0+FEBq918AuB4gQKJR FDB+mRRAplU3kAM1IEB2IyEXh/IUQN5xu3lgLyBAIADj7pBFFUDbYE/wcw8g QH1/IQ6gnxVAx9shMu2aH0CwCRUesPMVQLajB9+k4B5AljaFdcVOFkBsk2yn Vc0dQJtLQoUyqBZA/NwKD/FvHEB2a7SFoPsWQCUtUbIU3xpABC6jzRNWF0BX DkZVM9YYQGj7RgaIqhdAvAcpg5CaFkAyFFD6//8XQNWsZC8AABRAKCehrQ== "]]}, Annotation[#, "Charting`Private`Tag$3147791#1"]& ]}}, {}}, { DisplayFunction -> Identity, Ticks -> {Automatic, Automatic}, AxesOrigin -> {1., 0}, FrameTicks -> {{{}, {}}, {{}, {}}}, GridLines -> {None, None}, DisplayFunction -> Identity, PlotRangePadding -> {{ Scaled[0.1], Scaled[0.1]}, { Scaled[0.1], Scaled[0.1]}}, PlotRangeClipping -> True, ImagePadding -> All, DisplayFunction -> Identity, AspectRatio -> 1, Axes -> {False, False}, AxesLabel -> {None, None}, AxesOrigin -> {1., 0}, DisplayFunction :> Identity, Frame -> {{True, True}, {True, True}}, FrameLabel -> {{None, None}, {None, None}}, FrameStyle -> Directive[ Opacity[0.5], Thickness[Tiny], RGBColor[0.368417, 0.506779, 0.709798]], FrameTicks -> {{None, None}, {None, None}}, GridLines -> {None, None}, GridLinesStyle -> Directive[ GrayLevel[0.5, 0.4]], ImageSize -> Dynamic[{ Automatic, 3.5 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[ Magnification])}], Method -> { "DefaultBoundaryStyle" -> Automatic, "DefaultGraphicsInteraction" -> { "Version" -> 1.2, "TrackMousePosition" -> {True, False}, "Effects" -> { "Highlight" -> {"ratio" -> 2}, "HighlightPoint" -> {"ratio" -> 2}, "Droplines" -> { "freeformCursorMode" -> True, "placement" -> {"x" -> "All", "y" -> "None"}}}}, "DefaultMeshStyle" -> AbsolutePointSize[6], "ScalingFunctions" -> None, "CoordinatesToolOptions" -> {"DisplayFunction" -> ({ (Identity[#]& )[ Part[#, 1]], (Identity[#]& )[ Part[#, 2]]}& ), "CopiedValueFunction" -> ({ (Identity[#]& )[ Part[#, 1]], (Identity[#]& )[ Part[#, 2]]}& )}}, PlotRange -> {{1, 6}, {0., 8.103542811159809}}, PlotRangeClipping -> True, PlotRangePadding -> {{ Scaled[0.1], Scaled[0.1]}, { Scaled[0.1], Scaled[0.1]}}, Ticks -> {Automatic, Automatic}}], GridBox[{{ RowBox[{ TagBox["\"Domain: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox[ RowBox[{"{", RowBox[{"{", RowBox[{"1", ",", "6"}], "}"}], "}"}], "SummaryItem"]}]}, { RowBox[{ TagBox["\"Output: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["\"scalar\"", "SummaryItem"]}]}, { RowBox[{ TagBox["\"Order: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["3", "SummaryItem"]}]}, { RowBox[{ TagBox["\"Method: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["\"Hermite\"", "SummaryItem"]}]}, { RowBox[{ TagBox["\"Periodic: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["False", "SummaryItem"]}]}}, GridBoxAlignment -> { "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> False, GridBoxItemSize -> { "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings -> {"Columns" -> {{2}}, "Rows" -> {{Automatic}}}, BaseStyle -> { ShowStringCharacters -> False, NumberMarks -> False, PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, GridBoxAlignment -> {"Columns" -> {{Left}}, "Rows" -> {{Top}}}, AutoDelete -> False, GridBoxItemSize -> { "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, BaselinePosition -> {1, 1}]}, Dynamic[Typeset`open$$], ImageSize -> Automatic]}, "SummaryPanel"], DynamicModuleValues:>{}], "]"}], InterpolatingFunction[{{1, 6}}, { 5, 3, 0, {6}, {4}, 0, 0, 0, 0, Automatic, {}, {}, False}, {{1, 2, 3, 4, 5, 6}}, {{1}, {2}, {3}, {5}, {8}, {5}}, {Automatic}], Editable->False, SelectWithContents->True, Selectable->False]], "Output", TaggingRules->{}, CellID->749680769,ExpressionUUID->"4c3b33f9-7548-4882-8db4-e0251120d94a"] }, Open ]], Cell[TextData[{ "Convert the result to a ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["Piecewise", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/Piecewise", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "f55d9f95-2128-4b26-93f3-8bef08726bd9"], " function:" }], "Text", TaggingRules->{}, CellID->587297066,ExpressionUUID->"93bc4256-9199-439a-863a-79842f050a72"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ RowBox[{"pw", "[", "x_", "]"}], "=", RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{"f", ",", "x"}], "]"}]}]], "Input", TaggingRules->{}, CellID->73549742,ExpressionUUID->"23834e31-285c-4cd2-8059-810cbee7df9b"], Cell[BoxData[ TagBox[GridBox[{ {"\[Piecewise]", GridBox[{ { RowBox[{"1", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["4", "3"], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", FractionBox["1", "2"]}], "+", RowBox[{ FractionBox["1", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], RowBox[{"1", "\[LessEqual]", "x", "\[LessEqual]", "2"}]}, { RowBox[{"2", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["5", "6"], "+", RowBox[{ FractionBox["1", "6"], " ", SuperscriptBox[ RowBox[{"(", RowBox[{ RowBox[{"-", "2"}], "+", "x"}], ")"}], "2"]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2"}], "+", "x"}], ")"}]}]}], RowBox[{"2", "\[LessEqual]", "x", "\[LessEqual]", "3"}]}, { RowBox[{"3", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["3", "2"], "+", RowBox[{ FractionBox["1", "2"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "+", "x"}], ")"}]}]}], RowBox[{"3", "\[LessEqual]", "x", "\[LessEqual]", "4"}]}, { RowBox[{"5", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["11", "3"], "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["1", "2"], "-", RowBox[{ FractionBox["7", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], RowBox[{"4", "\[LessEqual]", "x", "\[LessEqual]", "5"}]}, { RowBox[{"8", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["7", "6"], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "-", RowBox[{ FractionBox["7", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], RowBox[{"5", "\[LessEqual]", "x", "\[LessEqual]", "6"}]}, {"0", TagBox["True", "PiecewiseDefault", AutoDelete->True]} }, AllowedDimensions->{2, Automatic}, Editable->True, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.84]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}, Selectable->True]} }, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.35]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}], "Piecewise", DeleteWithContents->True, Editable->False, SelectWithContents->True, Selectable->False, StripWrapperBoxes->True]], "Output", TaggingRules->{}, CellID->252824699,ExpressionUUID->"01468f71-2d95-4efb-80e2-8c421c6d4565"] }, Open ]], Cell[TextData[{ "Plot the relative difference between the ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["InterpolatingFunction", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/InterpolatingFunction", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "232c3961-03a0-42e8-9c73-f3254e64d9f2"], " and the ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["Piecewise", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/Piecewise", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "b3ea6cd1-108c-4085-869e-d036c28153b8"], " function:" }], "Text", TaggingRules->{}, CellID->99267511,ExpressionUUID->"8f4db2aa-d122-479d-bf29-c6b3ef47b303"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"Plot", "[", RowBox[{ RowBox[{"Abs", "[", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"f", "[", "x", "]"}], "-", RowBox[{"pw", "[", "x", "]"}]}], ")"}], "/", RowBox[{"f", "[", "x", "]"}]}], "]"}], ",", RowBox[{"{", RowBox[{"x", ",", "1", ",", "6"}], "}"}], ",", RowBox[{"PlotRange", "\[Rule]", "All"}]}], "]"}]], "Input", TaggingRules->{}, CellID->81632050,ExpressionUUID->"4b3f3660-2749-44c3-99c3-1626ffa00994"], Cell[BoxData[ GraphicsBox[{{{}, {}, TagBox[ {RGBColor[0.368417, 0.506779, 0.709798], AbsoluteThickness[1.6], Opacity[ 1.], LineBox[{{1.0000001020408162`, 2.2204457471488624`*^-16}, { 1.001533589602798, 2.215917576182607*^-16}, {1.0030670771647798`, 0.}, {1.0061340522887434`, 0.}, {1.0122680025366706`, 0.}, { 1.0245359030325252`, 0.}, {1.049071704024234, 0.}, { 1.0981433060076518`, 0.}, {1.204541785427293, 1.7717786243632223`*^-16}, {1.3038894178507605`, 0.}, { 1.4012882440943801`, 1.5153474298383919`*^-16}, {1.5069423457908055`, 1.415071000357642*^-16}, {1.605545600491057, 1.3367654232069146`*^-16}, {1.712404130644114, 1.2642229529019964`*^-16}, {1.8173138546173233`, 0.}, { 1.915172731594359, 0.}, {1.9984056122448979`, 0.}}], LineBox[{{2.001594387755102, 0.}, {2.120350189457867, 0.}, { 2.2174646887116864`, 0.}, {2.3228344634183116`, 0.}, { 2.4211533911287626`, 0.}, {2.527727594292019, 0.}, { 2.6323529912754284`, 0.}, {2.7299275412626636`, 0.}, { 2.8357573667027043`, 0.}, {2.934536345146571, 0.}, {2.998405612244898, 1.4813464458340434`*^-16}}], LineBox[{{3.001594387755102, 0.}, {3.146656046760068, 0.}, { 3.2446906474807187`, 0.}, {3.350980523654175, 0.}, {3.450219552831457, 0.}, {3.547509775828892, 0.}, {3.6530552742791325`, 0.}, { 3.751549925733199, 0.}, {3.8582998526400707`, 0.}, {3.963100973367095, 0.}, {3.998405612244898, 0.}}], LineBox[{{4.001594387755102, 1.774281868300655*^-16}, { 4.1668567962816025`, 1.5803017283709162`*^-16}, {4.265811498469085, 0.}, {4.3628173944767195`, 0.}, {4.46807856593716, 0.}, { 4.566288890401426, 0.}, {4.672754490318497, 0.}, {4.772169243239395, 0.}, {4.869635189980445, 0.}, {4.9753564121743015`, 0.}, { 4.998405612244898, 1.1104822862227178`*^-16}}], LineBox[CompressedData[" 1:eJxTTMoPSmViYGCQB2IQvYa/9+tCRhEHBiioO9A7w3sngu8jHbr0lIoonO+Q dzxasBPBnyeTpHLmq6iD8pd3JbemL7BRPrx8ml+0GFy+X/eQ1qV9CH7qZ5aL J7XEHdKDxNuyzy62Sdz4SaGzX9zhrGf05JY3S22ymoL/eE0Uh6svCd5ynWey uIOFXPjDWczLbNq+lvZNmIaQX2P58/f0uQj+j4P/ry1bLe7wLEhV4u66ZTYT LvH0HjmOkJ+1ODej7SSCv7jknLPHaQR/m9iEX6fPiTt0uYTrFx5ZbnMnSjjj 8lVxhyjLkCmWjCts1B9LOj96jFBvsKVKbslTBN+q9fbP1OcIvo/63A0vXyH4 RdkKch8/ijs0/Iq27+BYaVNj0/hz02eEfCvvoyslX8UdNjtqBj/XXmkzY/3i 7h8/EPKLGljSd/0Sd+j2bFARTFppszow1anmD0J+i9IxWbt/4g7ciye9fNe2 0mbfZ7Wf//+LOyTm9gXMnLnSBgCgKaDV "]]}, Annotation[#, "Charting`Private`Tag$3149298#1"]& ], {}}, {}}, AspectRatio->NCache[GoldenRatio^(-1), 0.6180339887498948], Axes->{True, True}, AxesLabel->{None, None}, AxesOrigin->{1.0000001020408162`, 0}, DisplayFunction->Identity, Frame->{{False, False}, {False, False}}, FrameLabel->{{None, None}, {None, None}}, FrameTicks->{{Automatic, Automatic}, {Automatic, Automatic}}, GridLines->{None, None}, GridLinesStyle->Directive[ GrayLevel[0.5, 0.4]], ImagePadding->All, Method->{ "DefaultBoundaryStyle" -> Automatic, "DefaultGraphicsInteraction" -> { "Version" -> 1.2, "TrackMousePosition" -> {True, False}, "Effects" -> { "Highlight" -> {"ratio" -> 2}, "HighlightPoint" -> {"ratio" -> 2}, "Droplines" -> { "freeformCursorMode" -> True, "placement" -> {"x" -> "All", "y" -> "None"}}}}, "DefaultMeshStyle" -> AbsolutePointSize[6], "ScalingFunctions" -> None, "CoordinatesToolOptions" -> {"DisplayFunction" -> ({ (Identity[#]& )[ Part[#, 1]], (Identity[#]& )[ Part[#, 2]]}& ), "CopiedValueFunction" -> ({ (Identity[#]& )[ Part[#, 1]], (Identity[#]& )[ Part[#, 2]]}& )}}, PlotRange->{All, All}, PlotRangeClipping->True, PlotRangePadding->{{ Scaled[0.02], Scaled[0.02]}, { Scaled[0.05], Scaled[0.05]}}, Ticks->{Automatic, Automatic}]], "Output", TaggingRules->{}, CellID->830316807,ExpressionUUID->"51681fae-57b4-4ba4-8884-584cc3626d45"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[TextData[{ "Scope", "\[NonBreakingSpace]", Cell["(2)", "ExampleCount",ExpressionUUID-> "49c56989-eaac-4fd9-b8a7-3adde03c54f5"], "\[NonBreakingSpace]" }], "Subsection", TaggingRules->{}, CellID->204653245,ExpressionUUID->"ec89e379-3f2a-41fe-8a23-007228fd4e56"], Cell["Convert an interpolating function from non-equispaced data:", "Text", TaggingRules->{}, CellID->657600106,ExpressionUUID->"116e9f81-61b3-4fd0-a29c-9eef8aa4afb1"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ RowBox[{"Interpolation", "[", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{"0.1", ",", ".3"}], "}"}], ",", RowBox[{"{", RowBox[{"0.5", ",", ".6"}], "}"}], ",", RowBox[{"{", RowBox[{"1", ",", RowBox[{"-", ".2"}]}], "}"}], ",", RowBox[{"{", RowBox[{"2", ",", "3"}], "}"}]}], "}"}], ",", RowBox[{"Method", "\[Rule]", "\"\\""}]}], "]"}], ",", "x"}], "]"}]], "Input", TaggingRules->{}, CellID->613785441,ExpressionUUID->"9fe5ea75-0600-4cf7-a7f0-cf1b156ebb1e"], Cell[BoxData[ TagBox[GridBox[{ {"\[Piecewise]", GridBox[{ { RowBox[{"0.`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}], " ", RowBox[{"(", RowBox[{"3.5242904988542216`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5.391485986250657`"}], "+", RowBox[{"1.4858099770844269`", " ", RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}]}]}], ")"}]}]}], ")"}]}]}], RowBox[{ "0.`", "\[LessEqual]", "x", "\[LessEqual]", "0.5333333333333333`"}]}, { RowBox[{"0.5714462398234652`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.9587367060344322`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "3.0141900229155647`"}], "+", RowBox[{"3.270579940066983`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.5333333333333333`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.5333333333333333`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.5333333333333333`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.5333333333333333`", "\[LessEqual]", "x", "\[LessEqual]", "2.`"}]}, {"0", TagBox["True", "PiecewiseDefault", AutoDelete->True]} }, AllowedDimensions->{2, Automatic}, Editable->True, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.84]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}, Selectable->True]} }, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.35]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}], "Piecewise", DeleteWithContents->True, Editable->False, SelectWithContents->True, Selectable->False, StripWrapperBoxes->True]], "Output", TaggingRules->{}, CellID->575685743,ExpressionUUID->"331cf4df-6404-431b-b4c4-1b3f39bcfce6"] }, Open ]], Cell[TextData[{ "Convert an interpolating function generated by ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["NDSolveValue", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/NDSolveValue", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "e2a68784-2168-4aa2-acf2-15925f52325f"], ":" }], "Text", TaggingRules->{}, CellID->849664596,ExpressionUUID->"cd8cead7-ca3f-4724-bb42-84e46458762c"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ RowBox[{"NDSolveValue", "[", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{ RowBox[{ RowBox[{ RowBox[{"y", "''"}], "[", "x", "]"}], "+", RowBox[{ RowBox[{"Sin", "[", RowBox[{"y", "[", "x", "]"}], "]"}], RowBox[{"y", "[", "x", "]"}]}]}], "==", "0"}], ",", RowBox[{ RowBox[{"y", "[", "0", "]"}], "==", "1"}], ",", RowBox[{ RowBox[{ RowBox[{"y", "'"}], "[", "0", "]"}], "==", "0"}]}], "}"}], ",", "y", ",", RowBox[{"{", RowBox[{"x", ",", "0", ",", "5"}], "}"}], ",", RowBox[{"Method", "\[Rule]", "\"\\""}]}], "]"}], ",", "x"}], "]"}]], "Input", TaggingRules->{}, CellID->868557959,ExpressionUUID->"6ffb9afe-a625-441e-9ac5-7d67e9a20278"], Cell[BoxData[ TagBox[GridBox[{ {"\[Piecewise]", GridBox[{ { RowBox[{"1.`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}], " ", RowBox[{"(", RowBox[{"8.072969376327066`*^-15", "+", RowBox[{ RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.4207354924038831`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.2997267712160513`*^-8"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}], " ", RowBox[{"(", RowBox[{ "0.048452026925931306`", "\[VeryThinSpace]", "-", RowBox[{"0.00021551419099263456`", " ", RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}]}]}], ")"}]}]}], ")"}]}]}], ")"}]}]}], ")"}]}]}], RowBox[{ "0.`", "\[LessEqual]", "x", "\[LessEqual]", "0.02444593300834571`"}]}, { RowBox[{"0.9997485842391577`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.020567712446503364`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.42056179639457675`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.0047345148113060445`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ "0.048487299483452366`", "\[VeryThinSpace]", "-", RowBox[{"0.0012022714870922368`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.02444593300834571`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.02444593300834571`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.02444593300834571`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.02444593300834571`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.02444593300834571`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.02444593300834571`", "\[LessEqual]", "x", "\[LessEqual]", "0.11079876012883022`"}]}, { RowBox[{"0.9948421933463012`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.09297064662890892`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.41717365810765195`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.02137617940525977`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ "0.048169362201881116`", "\[VeryThinSpace]", "-", RowBox[{"0.003603779291184936`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.11079876012883022`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.11079876012883022`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.11079876012883022`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.11079876012883022`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.11079876012883022`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.11079876012883022`", "\[LessEqual]", "x", "\[LessEqual]", "0.2743668422354792`"}]}, { RowBox[{"0.9686014870651163`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.22689721467502896`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.3991094958971364`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.05157142369100981`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ "0.047334897378429525`", "\[VeryThinSpace]", "-", RowBox[{"0.010879566368787104`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.2743668422354792`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.2743668422354792`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.2743668422354792`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.2743668422354792`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.2743668422354792`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.2743668422354792`", "\[LessEqual]", "x", "\[LessEqual]", "0.6965986640919711`"}]}, { RowBox[{"0.8068856663809325`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.5238246130205552`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.29134072984457715`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.11166731113161214`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ "0.022866053201929044`", "\[VeryThinSpace]", "-", RowBox[{"0.019499278489409744`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.6965986640919711`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.6965986640919711`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.6965986640919711`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.6965986640919711`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.6965986640919711`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.6965986640919711`", "\[LessEqual]", "x", "\[LessEqual]", "1.196598664091971`"}]}, { RowBox[{"0.4869163671732888`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.7260753574433978`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.11391478145603981`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.10935352558173207`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.02918628554243293`"}], "-", RowBox[{"0.009634950791667263`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.196598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "1.196598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "1.696598664091971`"}]}, { RowBox[{"0.1069439487266548`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.7755790596067524`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.00570760988667315`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.027674413331516625`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.050468544882613`"}], "+", RowBox[{"0.0005402306455755956`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.696598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "1.696598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "2.196598664091971`"}]}, { RowBox[{ RowBox[{"-", "0.2819505837294392`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.7855963098593538`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.03922351890637519`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.07220190729433437`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.047288432499454074`"}], "-", RowBox[{"0.004040970017456166`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.196598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "2.196598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "2.696598664091971`"}]}, { RowBox[{ RowBox[{"-", "0.6966616641417631`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.903878278616659`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.2235102411189064`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.17536646358139663`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.06817534168209334`"}], "+", RowBox[{"0.007116883874895119`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.696598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "2.696598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "3.196598664091971`"}]}, { RowBox[{ RowBox[{"-", "1.2304377279115342`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "1.2907770120517545`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.5799268441705744`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.2763190355070821`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.1158850043011231`"}], "+", RowBox[{"0.20711127790017098`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.196598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "3.196598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "3.696598664091971`"}]}, { RowBox[{ RowBox[{"-", "2.05611840975288`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "2.0711633606594404`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.9093438065074404`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.025308992004860476`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.7631358115405456`", "\[VeryThinSpace]", "+", RowBox[{"0.015023492081579479`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.696598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "3.696598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "4.1965986640919715`"}]}, { RowBox[{ RowBox[{"-", "3.274034193361236`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "2.6132261641247045`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.21617578789789776`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{"1.4971905188323578`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{"0.2215997533903793`", "\[VeryThinSpace]", "-", RowBox[{"0.6407175063036756`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.1965986640919715`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.1965986640919715`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.1965986640919715`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.1965986640919715`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.1965986640919715`"}], "+", "x"}], ")"}]}]}], RowBox[{ "4.1965986640919715`", "\[LessEqual]", "x", "\[LessEqual]", "4.598299332045985`"}]}, { RowBox[{ RowBox[{"-", "4.192770003119693`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "1.7407341766992666`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"1.819679873392958`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{"0.8558405496092933`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.8070106773808786`"}], "+", RowBox[{"0.2848727914875018`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.598299332045985`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.598299332045985`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.598299332045985`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.598299332045985`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.598299332045985`"}], "+", "x"}], ")"}]}]}], RowBox[{ "4.598299332045985`", "\[LessEqual]", "x", "\[LessEqual]", "5.`"}]}, {"0", TagBox["True", "PiecewiseDefault", AutoDelete->True]} }, AllowedDimensions->{2, Automatic}, Editable->True, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.84]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}, Selectable->True]} }, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.35]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}], "Piecewise", DeleteWithContents->True, Editable->False, SelectWithContents->True, Selectable->False, StripWrapperBoxes->True]], "Output", TaggingRules->{}, CellID->226659256,ExpressionUUID->"8e76461c-84b5-470a-9dae-a5efd8450693"] }, Open ]] }, Closed]], Cell[CellGroupData[{ Cell[TextData[{ "Options", "\[NonBreakingSpace]", Cell["(5)", "ExampleCount",ExpressionUUID-> "9f9e2494-fff6-43ba-994f-be34b628a00e"], "\[NonBreakingSpace]" }], "Subsection", TaggingRules->{}, CellID->890561554,ExpressionUUID->"c0a772b5-9491-4619-9f0f-d1b780810240"], Cell[CellGroupData[{ Cell[TextData[{ "Extrapolation", "\[NonBreakingSpace]", Cell["(3)", "ExampleCount",ExpressionUUID-> "cad9de5c-ffc1-46c0-ae17-eabc1d0b1c14"], "\[NonBreakingSpace]" }], "Subsubsection", TaggingRules->{}, CellID->75472180,ExpressionUUID->"708047e9-b29c-4630-8d7e-a095b4e2dad9"], Cell[TextData[{ "By default, ", Cell[BoxData[ StyleBox["InterpolatingFunctionToPiecewise", "InlineResourceFunction"]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "99048756-0be4-4a60-b923-584040fdda4c"], " generates a result that is valid on the same domain as the original ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["InterpolatingFunction", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/InterpolatingFunction", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "9db57a73-a388-4f07-9058-66ef5fb31a7a"], ":" }], "Text", TaggingRules->{}, CellID->352487,ExpressionUUID->"58a628e8-e348-4706-8bdd-d59e9bbb3625"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ RowBox[{"Interpolation", "[", RowBox[{"{", RowBox[{"1", ",", "2", ",", "3", ",", "5", ",", "8", ",", "5"}], "}"}], "]"}], ",", "x"}], "]"}]], "Input", TaggingRules->{}, CellID->490691523,ExpressionUUID->"b11f762f-6294-4b88-9016-7cb3fc34635c"], Cell[BoxData[ TagBox[GridBox[{ {"\[Piecewise]", GridBox[{ { RowBox[{"1", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["4", "3"], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", FractionBox["1", "2"]}], "+", RowBox[{ FractionBox["1", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], RowBox[{"1", "\[LessEqual]", "x", "\[LessEqual]", "2"}]}, { RowBox[{"2", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["5", "6"], "+", RowBox[{ FractionBox["1", "6"], " ", SuperscriptBox[ RowBox[{"(", RowBox[{ RowBox[{"-", "2"}], "+", "x"}], ")"}], "2"]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2"}], "+", "x"}], ")"}]}]}], RowBox[{"2", "\[LessEqual]", "x", "\[LessEqual]", "3"}]}, { RowBox[{"3", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["3", "2"], "+", RowBox[{ FractionBox["1", "2"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "+", "x"}], ")"}]}]}], RowBox[{"3", "\[LessEqual]", "x", "\[LessEqual]", "4"}]}, { RowBox[{"5", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["11", "3"], "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["1", "2"], "-", RowBox[{ FractionBox["7", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], RowBox[{"4", "\[LessEqual]", "x", "\[LessEqual]", "5"}]}, { RowBox[{"8", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["7", "6"], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "-", RowBox[{ FractionBox["7", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], RowBox[{"5", "\[LessEqual]", "x", "\[LessEqual]", "6"}]}, {"0", TagBox["True", "PiecewiseDefault", AutoDelete->True]} }, AllowedDimensions->{2, Automatic}, Editable->True, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.84]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}, Selectable->True]} }, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.35]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}], "Piecewise", DeleteWithContents->True, Editable->False, SelectWithContents->True, Selectable->False, StripWrapperBoxes->True]], "Output", TaggingRules->{}, CellID->252824700,ExpressionUUID->"5da77319-d0f6-44fe-b890-d7b338fcdb4f"] }, Open ]], Cell[TextData[{ "With ", Cell[BoxData[ RowBox[{"\"\\"", "\[Rule]", TagBox[ ButtonBox[ StyleBox["True", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/True", ContentPadding->False], MouseAppearanceTag["LinkHand"]]}]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "b52e1d8a-b56b-48e0-9364-94c9ca910d8e"], ", ", Cell[BoxData[ StyleBox["InterpolatingFunctionToPiecewise", "InlineResourceFunction"]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "4759948b-a3be-4eb9-a3e6-2776a5043c93"], " generates a result with an extended domain:" }], "Text", TaggingRules->{}, CellID->608868854,ExpressionUUID->"c569f342-e4c0-4db8-aa37-900d51d0cdd1"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ RowBox[{"Interpolation", "[", RowBox[{"{", RowBox[{"1", ",", "2", ",", "3", ",", "5", ",", "8", ",", "5"}], "}"}], "]"}], ",", "x", ",", RowBox[{"\"\\"", "\[Rule]", "True"}]}], "]"}]], "Input", TaggingRules->{}, CellID->947124742,ExpressionUUID->"633ec976-01e5-421c-b1b7-b027b811a046"], Cell[BoxData[ TagBox[GridBox[{ {"\[Piecewise]", GridBox[{ { RowBox[{"1", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["4", "3"], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", FractionBox["1", "2"]}], "+", RowBox[{ FractionBox["1", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], RowBox[{"x", "\[LessEqual]", "2"}]}, { RowBox[{"2", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["5", "6"], "+", RowBox[{ FractionBox["1", "6"], " ", SuperscriptBox[ RowBox[{"(", RowBox[{ RowBox[{"-", "2"}], "+", "x"}], ")"}], "2"]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2"}], "+", "x"}], ")"}]}]}], RowBox[{"2", "\[LessEqual]", "x", "\[LessEqual]", "3"}]}, { RowBox[{"3", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["3", "2"], "+", RowBox[{ FractionBox["1", "2"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "+", "x"}], ")"}]}]}], RowBox[{"3", "\[LessEqual]", "x", "\[LessEqual]", "4"}]}, { RowBox[{"5", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["11", "3"], "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["1", "2"], "-", RowBox[{ FractionBox["7", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], RowBox[{"4", "\[LessEqual]", "x", "\[LessEqual]", "5"}]}, { RowBox[{"8", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["7", "6"], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "-", RowBox[{ FractionBox["7", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], RowBox[{"5", "\[LessEqual]", "x"}]}, {"0", TagBox["True", "PiecewiseDefault", AutoDelete->True]} }, AllowedDimensions->{2, Automatic}, Editable->True, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.84]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}, Selectable->True]} }, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.35]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}], "Piecewise", DeleteWithContents->True, Editable->False, SelectWithContents->True, Selectable->False, StripWrapperBoxes->True]], "Output", TaggingRules->{}, CellID->253534914,ExpressionUUID->"11be49b1-85b0-485d-b4f4-da9d725b4110"] }, Open ]], Cell["\<\ You can give a list of Boolean values to independently specify the \ extrapolation behavior at the left and right sides of the domain:\ \>", "Text", TaggingRules->{}, CellID->227727076,ExpressionUUID->"c6df11b0-c7e8-4b84-ab3d-9a6882c6019b"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ RowBox[{"Interpolation", "[", RowBox[{"{", RowBox[{"1", ",", "2", ",", "3", ",", "5", ",", "8", ",", "5"}], "}"}], "]"}], ",", "x", ",", RowBox[{"\"\\"", "\[Rule]", RowBox[{"{", RowBox[{"False", ",", "True"}], "}"}]}]}], "]"}]], "Input", TaggingRules->{}, CellID->878583888,ExpressionUUID->"0f0df109-274a-4126-b5cd-0a31aa13de51"], Cell[BoxData[ TagBox[GridBox[{ {"\[Piecewise]", GridBox[{ { RowBox[{"1", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["4", "3"], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", FractionBox["1", "2"]}], "+", RowBox[{ FractionBox["1", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1"}], "+", "x"}], ")"}]}]}], RowBox[{"1", "\[LessEqual]", "x", "\[LessEqual]", "2"}]}, { RowBox[{"2", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["5", "6"], "+", RowBox[{ FractionBox["1", "6"], " ", SuperscriptBox[ RowBox[{"(", RowBox[{ RowBox[{"-", "2"}], "+", "x"}], ")"}], "2"]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2"}], "+", "x"}], ")"}]}]}], RowBox[{"2", "\[LessEqual]", "x", "\[LessEqual]", "3"}]}, { RowBox[{"3", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["3", "2"], "+", RowBox[{ FractionBox["1", "2"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "+", "x"}], ")"}]}]}], RowBox[{"3", "\[LessEqual]", "x", "\[LessEqual]", "4"}]}, { RowBox[{"5", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["11", "3"], "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["1", "2"], "-", RowBox[{ FractionBox["7", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4"}], "+", "x"}], ")"}]}]}], RowBox[{"4", "\[LessEqual]", "x", "\[LessEqual]", "5"}]}, { RowBox[{"8", "+", RowBox[{ RowBox[{"(", RowBox[{ FractionBox["7", "6"], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "3"}], "-", RowBox[{ FractionBox["7", "6"], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "5"}], "+", "x"}], ")"}]}]}], RowBox[{"5", "\[LessEqual]", "x"}]}, {"0", TagBox["True", "PiecewiseDefault", AutoDelete->True]} }, AllowedDimensions->{2, Automatic}, Editable->True, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.84]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}, Selectable->True]} }, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.35]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}], "Piecewise", DeleteWithContents->True, Editable->False, SelectWithContents->True, Selectable->False, StripWrapperBoxes->True]], "Output", TaggingRules->{}, CellID->408832814,ExpressionUUID->"5aa6b6f7-de36-459e-afad-74eda09adfcf"] }, Open ]] }, Closed]], Cell[CellGroupData[{ Cell[TextData[{ "InterpolationOrder", "\[NonBreakingSpace]", Cell["(2)", "ExampleCount",ExpressionUUID-> "eed1493f-bd92-43d0-bc62-0466af3d8482"], "\[NonBreakingSpace]" }], "Subsubsection", TaggingRules->{}, CellID->797417395,ExpressionUUID->"8e54ac11-5678-45f9-85d3-1fadbac67544"], Cell[TextData[{ "Use ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["InterpolationOrder", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.8549, 0.39608, 0.1451]}, {"Link"}]], ButtonData->"paclet:ref/InterpolationOrder", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "967de699-36c9-4032-8c40-dc8cf3cbf672"], " to generate a lower-order approximation to an ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["InterpolatingFunction", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/InterpolatingFunction", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "6de872c4-aa6a-4331-8436-3d1a211f975b"], ":" }], "Text", TaggingRules->{}, CellChangeTimes->{{3.905003425716206*^9, 3.9050034415908203`*^9}}, CellID->135344265,ExpressionUUID->"aa3ef397-379a-44d8-806b-f7ac2095e138"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ RowBox[{"NDSolveValue", "[", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{ RowBox[{ RowBox[{ RowBox[{"y", "''"}], "[", "x", "]"}], "+", RowBox[{ RowBox[{"Sin", "[", RowBox[{"y", "[", "x", "]"}], "]"}], RowBox[{"y", "[", "x", "]"}]}]}], "==", "0"}], ",", RowBox[{ RowBox[{"y", "[", "0", "]"}], "==", "1"}], ",", RowBox[{ RowBox[{ RowBox[{"y", "'"}], "[", "0", "]"}], "==", "0"}]}], "}"}], ",", "y", ",", RowBox[{"{", RowBox[{"x", ",", "0", ",", "5"}], "}"}], ",", RowBox[{"Method", "\[Rule]", "\"\\""}]}], "]"}], ",", "x", ",", RowBox[{"InterpolationOrder", "\[Rule]", "3"}]}], "]"}]], "Input", TaggingRules->{}, CellID->169731484,ExpressionUUID->"7e398480-7396-4ebc-925b-f2082a0629b4"], Cell[BoxData[ TagBox[GridBox[{ {"\[Piecewise]", GridBox[{ { RowBox[{"1.`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}], " ", RowBox[{"(", RowBox[{"1.326901312428616`*^-7", "+", RowBox[{ RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.42076986970609564`"}], "+", RowBox[{"0.0023685047551631018`", " ", RowBox[{"(", RowBox[{"0.`", "\[VeryThinSpace]", "+", "x"}], ")"}]}]}], ")"}]}]}], ")"}]}]}], RowBox[{ "0.`", "\[LessEqual]", "x", "\[LessEqual]", "0.02444593300834571`"}]}, { RowBox[{"0.9997485842391577`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.02056188343167275`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.42098945614523453`"}], "+", RowBox[{"0.013083331215269467`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.02444593300834571`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.02444593300834571`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.02444593300834571`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.02444593300834571`", "\[LessEqual]", "x", "\[LessEqual]", "0.11079876012883022`"}]}, { RowBox[{"0.9948421933463012`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.09293208934547192`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.41866954777240895`"}], "+", RowBox[{"0.03686294591836251`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.11079876012883022`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.11079876012883022`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.11079876012883022`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.11079876012883022`", "\[LessEqual]", "x", "\[LessEqual]", "0.2743668422354792`"}]}, { RowBox[{"0.9686014870651163`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.22635879586076868`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.40733915012210425`"}], "+", RowBox[{"0.08608888186525776`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.2743668422354792`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.2743668422354792`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.2743668422354792`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.2743668422354792`", "\[LessEqual]", "x", "\[LessEqual]", "0.6965986640919711`"}]}, { RowBox[{"0.8068856663809325`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.5237457042382311`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.2927972554269486`"}], "+", RowBox[{"0.12082293414567094`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.6965986640919711`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.6965986640919711`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "0.6965986640919711`"}], "+", "x"}], ")"}]}]}], RowBox[{ "0.6965986640919711`", "\[LessEqual]", "x", "\[LessEqual]", "1.196598664091971`"}]}, { RowBox[{"0.4869163671732888`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.7269852301699781`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.1026155460785348`"}], "+", RowBox[{"0.07339266526390986`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.196598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "1.196598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "1.696598664091971`"}]}, { RowBox[{"0.1069439487266548`", "\[VeryThinSpace]", "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.7767492544716843`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.009127520058214895`", "\[VeryThinSpace]", "-", RowBox[{"0.022414281878444815`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "1.696598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "1.696598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "2.196598664091971`"}]}, { RowBox[{ RowBox[{"-", "0.2819505837294392`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.7867993427308495`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.024079812768919236`"}], "-", RowBox[{"0.1223316468373549`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.196598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "2.196598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "2.696598664091971`"}]}, { RowBox[{ RowBox[{"-", "0.6966616641417631`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.9053093362215221`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.20521670949153403`"}], "-", RowBox[{"0.23853774628901192`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "2.696598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "2.696598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "3.196598664091971`"}]}, { RowBox[{ RowBox[{"-", "1.2304377279115342`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "1.2886388962642878`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "0.6021554735694371`"}], "-", RowBox[{"0.24657892253474256`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.196598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.196598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "3.196598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "3.696598664091971`"}]}, { RowBox[{ RowBox[{"-", "2.05611840975288`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "2.052925251980784`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "1.1400077366746677`"}], "+", RowBox[{"0.748390212405635`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.696598664091971`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "3.696598664091971`"}], "+", "x"}], ")"}]}]}], RowBox[{ "3.696598664091971`", "\[LessEqual]", "x", "\[LessEqual]", "4.1965986640919715`"}]}, { RowBox[{ RowBox[{"-", "3.274034193361236`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "2.6167890678492762`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"0.2645625017915132`", "\[VeryThinSpace]", "+", RowBox[{"1.3844442595870379`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.1965986640919715`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.1965986640919715`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.1965986640919715`"}], "+", "x"}], ")"}]}]}], RowBox[{ "4.1965986640919715`", "\[LessEqual]", "x", "\[LessEqual]", "4.598299332045985`"}]}, { RowBox[{ RowBox[{"-", "4.192770003119693`"}], "+", RowBox[{ RowBox[{"(", RowBox[{ RowBox[{"-", "1.747760766129888`"}], "+", RowBox[{ RowBox[{"(", RowBox[{"1.9339254537524622`", "\[VeryThinSpace]", "+", RowBox[{"0.3367722333422931`", " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.598299332045985`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.598299332045985`"}], "+", "x"}], ")"}]}]}], ")"}], " ", RowBox[{"(", RowBox[{ RowBox[{"-", "4.598299332045985`"}], "+", "x"}], ")"}]}]}], RowBox[{ "4.598299332045985`", "\[LessEqual]", "x", "\[LessEqual]", "5.`"}]}, {"0", TagBox["True", "PiecewiseDefault", AutoDelete->True]} }, AllowedDimensions->{2, Automatic}, Editable->True, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.84]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}, Selectable->True]} }, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.35]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}], "Piecewise", DeleteWithContents->True, Editable->False, SelectWithContents->True, Selectable->False, StripWrapperBoxes->True]], "Output", TaggingRules->{}, CellID->294135196,ExpressionUUID->"e1267f3c-3047-443d-b958-1eee1bad35e7"] }, Open ]], Cell[TextData[{ "Generate a piecewise-constant approximation with ", Cell[BoxData[ RowBox[{ TagBox[ ButtonBox[ StyleBox["InterpolationOrder", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/InterpolationOrder", ContentPadding->False], MouseAppearanceTag["LinkHand"]], "->", "0"}]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "14066493-e1c7-4edd-8c9a-4f9a03616cbe"], ":" }], "Text", TaggingRules->{}, CellID->464120715,ExpressionUUID->"3e9093cf-5134-402e-bf0e-4f3a956172dd"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ RowBox[{"Interpolation", "[", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{"0.1", ",", ".3"}], "}"}], ",", RowBox[{"{", RowBox[{"0.5", ",", ".6"}], "}"}], ",", RowBox[{"{", RowBox[{"1", ",", RowBox[{"-", ".2"}]}], "}"}], ",", RowBox[{"{", RowBox[{"2", ",", "3"}], "}"}]}], "}"}], "]"}], ",", "x", ",", RowBox[{"InterpolationOrder", "\[Rule]", "0"}]}], "]"}]], "Input", TaggingRules->{}, CellID->135537564,ExpressionUUID->"3a787bcc-7e3f-4e02-b04a-f137bbf19dd5"], Cell[BoxData[ TagBox[GridBox[{ {"\[Piecewise]", GridBox[{ {"0.3`", RowBox[{"0.`", "\[LessEqual]", "x", "\[LessEqual]", "0.1`"}]}, {"0.6`", RowBox[{"0.1`", "\[LessEqual]", "x", "\[LessEqual]", "0.5`"}]}, { RowBox[{"-", "0.2`"}], RowBox[{"0.5`", "\[LessEqual]", "x", "\[LessEqual]", "1.`"}]}, {"3.`", RowBox[{"1.`", "\[LessEqual]", "x", "\[LessEqual]", "2.`"}]}, {"0", TagBox["True", "PiecewiseDefault", AutoDelete->True]} }, AllowedDimensions->{2, Automatic}, Editable->True, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.84]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}, Selectable->True]} }, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{1.}}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.35]}, Offset[0.27999999999999997`]}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}}], "Piecewise", DeleteWithContents->True, Editable->False, SelectWithContents->True, Selectable->False, StripWrapperBoxes->True]], "Output", TaggingRules->{}, CellID->140433460,ExpressionUUID->"3262c364-bee2-45da-a576-57c8f4355ab2"] }, Open ]] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell[TextData[{ "Possible Issues", "\[NonBreakingSpace]", Cell["(1)", "ExampleCount",ExpressionUUID-> "144ffee2-03da-4a60-85fb-b546e030a321"], "\[NonBreakingSpace]" }], "Subsection", TaggingRules->{}, CellID->158766396,ExpressionUUID->"7c442c27-4670-481f-8fce-baf753ae20ef"], Cell[TextData[{ Cell[BoxData[ StyleBox["InterpolatingFunctionToPiecewise", "InlineResourceFunction"]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "fc31ae0f-9dc6-4e5e-8dc9-6ce6f0c88ffd"], " currently supports only ", Cell[BoxData[ TagBox[ ButtonBox[ StyleBox["InterpolatingFunction", "SymbolsRefLink", ShowStringCharacters->True, FontFamily->"Source Sans Pro"], BaseStyle->Dynamic[ FEPrivate`If[ CurrentValue["MouseOver"], { "Link", FontColor -> RGBColor[0.854902, 0.396078, 0.145098]}, { "Link"}]], ButtonData->"paclet:ref/InterpolatingFunction", ContentPadding->False], MouseAppearanceTag["LinkHand"]]], "InlineFormula", FontFamily->"Source Sans Pro",ExpressionUUID-> "44fba299-aa82-49d3-895b-ddb0f96cc28f"], " objects of one variable and is left unevaluated otherwise:" }], "Text", TaggingRules->{}, CellChangeTimes->{3.9050034551015453`*^9}, CellID->103611698,ExpressionUUID->"4ac707f9-12ee-4116-9d46-67ffbf076aca"], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {1., 10.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {1., 10.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ RowBox[{"Interpolation", "[", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "0"}], "}"}], ",", "0", ",", RowBox[{"{", RowBox[{"1", ",", "1"}], "}"}]}], "}"}], ",", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"1", ",", "0"}], "}"}], ",", RowBox[{"-", "1"}], ",", RowBox[{"{", RowBox[{ RowBox[{"-", "1"}], ",", "1"}], "}"}]}], "}"}], ",", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "1"}], "}"}], ",", RowBox[{"-", "1"}], ",", RowBox[{"{", RowBox[{"1", ",", RowBox[{"-", "1"}]}], "}"}]}], "}"}], ",", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"1", ",", "1"}], "}"}], ",", "1", ",", RowBox[{"{", RowBox[{"1", ",", "1"}], "}"}]}], "}"}]}], "}"}], "]"}], ",", "x"}], "]"}]], "Input", TaggingRules->{}, CellID->621025076,ExpressionUUID->"4e060351-46a0-4580-bc2f-89588147f75e"], Cell[BoxData[ RowBox[{ InterpretationBox[ TagBox[ TagBox[ DynamicModuleBox[{Typeset`open = False}, FrameBox[ PaneSelectorBox[{False->GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"], ImageSizeCache->{11., {2., 9.}}], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"], ImageSizeCache->{11., {2., 9.}}]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}], True-> GridBox[{ {GridBox[{ { PaneBox[GridBox[{ { StyleBox[ StyleBox[ AdjustmentBox["\<\"[\[FilledSmallSquare]]\"\>", BoxBaselineShift->-0.25, BoxMargins->{{0, 0}, {-1, -1}}], "ResourceFunctionIcon", FontColor->RGBColor[ 0.8745098039215686, 0.2784313725490196, 0.03137254901960784]], ShowStringCharacters->False, FontFamily->"Source Sans Pro Black", FontSize->0.6538461538461539 Inherited, FontWeight->"Heavy", PrivateFontOptions->{"OperatorSubstitution"->False}], StyleBox[ RowBox[{ StyleBox["InterpolatingFunctionToPiecewise", "ResourceFunctionLabel"], " "}], ShowAutoStyles->False, ShowStringCharacters->False, FontSize->Rational[12, 13] Inherited, FontColor->GrayLevel[0.1]]} }, GridBoxSpacings->{"Columns" -> {{0.25}}}], Alignment->Left, BaseStyle->{LineSpacing -> {0, 0}, LineBreakWithin -> False}, BaselinePosition->Baseline, FrameMargins->{{3, 0}, {0, 0}}], ItemBox[ PaneBox[ TogglerBox[Dynamic[Typeset`open], {True-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeCloser"]], False-> DynamicBox[FEPrivate`FrontEndResource[ "FEBitmaps", "IconizeOpener"]]}, Appearance->None, BaselinePosition->Baseline, ContentPadding->False, FrameMargins->0], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{1, 1}, {0, 0}}], Frame->{{ RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627, 0.5], False}, {False, False}}]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings->{"Columns" -> {{0}}, "Rows" -> {{0}}}]}, { StyleBox[ PaneBox[GridBox[{ { RowBox[{ TagBox["\<\"Version (latest): \"\>", "IconizedLabel"], " ", TagBox["\<\"1.0.1\"\>", "IconizedItem"]}]}, { TagBox[ TemplateBox[{ "\"Documentation \[RightGuillemet]\"", "https://resources.wolframcloud.com/FunctionRepository/\ resources/8b32c4ae-6dff-474b-95f7-e53c2cc8b1a9/"}, "HyperlinkURL"], "IconizedItem"]} }, DefaultBaseStyle->"Column", GridBoxAlignment->{"Columns" -> {{Left}}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], Alignment->Left, BaselinePosition->Baseline, FrameMargins->{{5, 4}, {0, 4}}], "DialogStyle", FontFamily->"Roboto", FontSize->11]} }, BaselinePosition->{1, 1}, GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}}, GridBoxDividers->{"Columns" -> {{None}}, "Rows" -> {False, { GrayLevel[0.8]}, False}}, GridBoxItemSize->{ "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}]}, Dynamic[ Typeset`open], BaselinePosition->Baseline, ImageSize->Automatic], Background->RGBColor[ 0.9686274509803922, 0.9764705882352941, 0.984313725490196], BaselinePosition->Baseline, DefaultBaseStyle->{}, FrameMargins->{{0, 0}, {1, 0}}, FrameStyle->RGBColor[ 0.8313725490196079, 0.8470588235294118, 0.8509803921568627], RoundingRadius->4]], #& , TagBoxNote->" "], {"FunctionResourceBox", RGBColor[0.8745098039215686, 0.2784313725490196, 0.03137254901960784], "InterpolatingFunctionToPiecewise"}, TagBoxNote->"FunctionResourceBox"], ResourceFunction[ "InterpolatingFunctionToPiecewise", ResourceSystemBase -> "https://www.wolframcloud.com/obj/resourcesystem/api/1.0"], BoxID -> "InterpolatingFunctionToPiecewise", Selectable->False], "[", RowBox[{ InterpretationBox[ RowBox[{ TagBox["InterpolatingFunction", "SummaryHead"], "[", DynamicModuleBox[{Typeset`open$$ = False, Typeset`embedState$$ = "Ready"}, TemplateBox[{ PaneSelectorBox[{False -> GridBox[{{ PaneBox[ ButtonBox[ DynamicBox[ FEPrivate`FrontEndResource["FEBitmaps", "SummaryBoxOpener"]], ButtonFunction :> (Typeset`open$$ = True), Appearance -> None, BaseStyle -> {}, Evaluator -> Automatic, Method -> "Preemptive"], Alignment -> {Center, Center}, ImageSize -> Dynamic[{ Automatic, 3.5 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[ Magnification])}]], GraphicsBox[{{ GrayLevel[0.6], AbsolutePointSize[5], PointBox[{1, 1}], PointBox[{2, 4}], PointBox[{3, 2}], PointBox[{4, 3}]}, {{}, {}, { AbsoluteThickness[1], Opacity[1.], LineBox[CompressedData[" 1:eJwBMQPO/CFib1JlAgAAADIAAAACAAAA4ScLwZmZ6T/ACPskWpOYv4AjHgZ5 3Os/cnpQh5xu1j/qWn1XCVDuP5K7ih5ptuc/r+pongFN8D/CUK87BHLxP46d cUQ/bPE/ujUa8/qu9j9TbqBw1aPyP/TWyyAhFfw/neDJZqDG8z+QAqdF9GsA QM1wGePDAfU/VsVD/9nXAkCidscSKDf2P6Bp73exDQVA/B1wDMFX9z+TpM3k wfUGQDzjPoyykPg/7M3Z+O7ZCEABSgjW2LT5P3pl9LwNcgpAbCYw0z/T+j86 ypori9cLQL0gflb/Cfw/lpOs9xIqDUCTvMaj8yv9Pw4alcoYNg5AT3Y1d0Bm /j+pB2LLtyIPQLClAv7Nmv8/NnA5bbjSD0BLO2UnSF0AQFrcILXmpw9AsTLc klX5AED+sDHBQukOQNp6UGP9igFAbZ+lR/sLDkD10dd20SgCQNHi3Mj38wxA 42MO5MXDAkAZdr6AZb8LQJRGQrZUVANArv7zEMKHCkA4OInLD/EDQLBlMO3M IglAnnrNRWWDBEA3d8OX6skHQNf3wBnbEgVAD3D3ndNyBkADhMcwfa4FQHOK 7Wak/wRA8WDLrLk/BkC/MhCgYawDQNJM4msi3QZAwss/TmVLAkCGc6iEq3cH QIsIg92+BgFA/OprAs8HCECrPCvgePD/P2VxQsMepAhAKXVLE0Xg/j+RSBbp CDYJQPRz0a7WJ/4/kFqZaBPFCUDN4sX5uLj9P4J7LytKYApAvh1MbRmT/T82 7cJSG/EKQHzT1YZwwv0/3W1pvRiOC0B2LZ/10lT+P0c/DY2wIAxAVrX8MJA7 /z+DS2C2aLAMQElWzbMzPQBAsmbGIk1MDUCi9bAadCABQKTSKfTL3Q1AYexd q+EpAkCJTaAId3sOQFyS/ndEhgNAQAPGdkIWD0BHWcLdahwFQLoJ6Umopg9A vd1CiejSBkCTjw8wnSEQQPiVkXD08QhAq0KpbbNqEEBsk2Azxi4LQCyTGthZ shBAYCBYjj+gDUAnaxVkFgARQMwfdA9ySBBAg+uOIqBIEUBj/5rHgMsRQNFn q5SZmRFAL++xNeOlE0Dwt3AR "]]}}}, AspectRatio -> 1, Axes -> False, Background -> GrayLevel[0.93], Frame -> True, FrameStyle -> Directive[ GrayLevel[0.7], Thickness[Tiny]], FrameTicks -> None, ImageSize -> Dynamic[{ Automatic, 3.5 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[ Magnification])}], PlotRange -> {{0, 5}, {0, 5}}], GridBox[{{ RowBox[{ TagBox["\"Domain: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox[ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "1"}], "}"}], ",", RowBox[{"{", RowBox[{"0", ",", "1"}], "}"}]}], "}"}], "SummaryItem"]}]}, { RowBox[{ TagBox["\"Output: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["\"scalar\"", "SummaryItem"]}]}}, GridBoxAlignment -> { "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> False, GridBoxItemSize -> { "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings -> { "Columns" -> {{2}}, "Rows" -> {{Automatic}}}, BaseStyle -> { ShowStringCharacters -> False, NumberMarks -> False, PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, GridBoxAlignment -> {"Columns" -> {{Left}}, "Rows" -> {{Top}}}, AutoDelete -> False, GridBoxItemSize -> { "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, BaselinePosition -> {1, 1}], True -> GridBox[{{ PaneBox[ ButtonBox[ DynamicBox[ FEPrivate`FrontEndResource["FEBitmaps", "SummaryBoxCloser"]], ButtonFunction :> (Typeset`open$$ = False), Appearance -> None, BaseStyle -> {}, Evaluator -> Automatic, Method -> "Preemptive"], Alignment -> {Center, Center}, ImageSize -> Dynamic[{ Automatic, 3.5 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[ Magnification])}]], GraphicsBox[{{ GrayLevel[0.6], AbsolutePointSize[5], PointBox[{1, 1}], PointBox[{2, 4}], PointBox[{3, 2}], PointBox[{4, 3}]}, {{}, {}, { AbsoluteThickness[1], Opacity[1.], LineBox[CompressedData[" 1:eJwBMQPO/CFib1JlAgAAADIAAAACAAAA4ScLwZmZ6T/ACPskWpOYv4AjHgZ5 3Os/cnpQh5xu1j/qWn1XCVDuP5K7ih5ptuc/r+pongFN8D/CUK87BHLxP46d cUQ/bPE/ujUa8/qu9j9TbqBw1aPyP/TWyyAhFfw/neDJZqDG8z+QAqdF9GsA QM1wGePDAfU/VsVD/9nXAkCidscSKDf2P6Bp73exDQVA/B1wDMFX9z+TpM3k wfUGQDzjPoyykPg/7M3Z+O7ZCEABSgjW2LT5P3pl9LwNcgpAbCYw0z/T+j86 ypori9cLQL0gflb/Cfw/lpOs9xIqDUCTvMaj8yv9Pw4alcoYNg5AT3Y1d0Bm /j+pB2LLtyIPQLClAv7Nmv8/NnA5bbjSD0BLO2UnSF0AQFrcILXmpw9AsTLc klX5AED+sDHBQukOQNp6UGP9igFAbZ+lR/sLDkD10dd20SgCQNHi3Mj38wxA 42MO5MXDAkAZdr6AZb8LQJRGQrZUVANArv7zEMKHCkA4OInLD/EDQLBlMO3M IglAnnrNRWWDBEA3d8OX6skHQNf3wBnbEgVAD3D3ndNyBkADhMcwfa4FQHOK 7Wak/wRA8WDLrLk/BkC/MhCgYawDQNJM4msi3QZAwss/TmVLAkCGc6iEq3cH QIsIg92+BgFA/OprAs8HCECrPCvgePD/P2VxQsMepAhAKXVLE0Xg/j+RSBbp CDYJQPRz0a7WJ/4/kFqZaBPFCUDN4sX5uLj9P4J7LytKYApAvh1MbRmT/T82 7cJSG/EKQHzT1YZwwv0/3W1pvRiOC0B2LZ/10lT+P0c/DY2wIAxAVrX8MJA7 /z+DS2C2aLAMQElWzbMzPQBAsmbGIk1MDUCi9bAadCABQKTSKfTL3Q1AYexd q+EpAkCJTaAId3sOQFyS/ndEhgNAQAPGdkIWD0BHWcLdahwFQLoJ6Umopg9A vd1CiejSBkCTjw8wnSEQQPiVkXD08QhAq0KpbbNqEEBsk2Azxi4LQCyTGthZ shBAYCBYjj+gDUAnaxVkFgARQMwfdA9ySBBAg+uOIqBIEUBj/5rHgMsRQNFn q5SZmRFAL++xNeOlE0Dwt3AR "]]}}}, AspectRatio -> 1, Axes -> False, Background -> GrayLevel[0.93], Frame -> True, FrameStyle -> Directive[ GrayLevel[0.7], Thickness[Tiny]], FrameTicks -> None, ImageSize -> Dynamic[{ Automatic, 3.5 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[ Magnification])}], PlotRange -> {{0, 5}, {0, 5}}], GridBox[{{ RowBox[{ TagBox["\"Domain: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox[ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", "1"}], "}"}], ",", RowBox[{"{", RowBox[{"0", ",", "1"}], "}"}]}], "}"}], "SummaryItem"]}]}, { RowBox[{ TagBox["\"Output: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["\"scalar\"", "SummaryItem"]}]}, { RowBox[{ TagBox["\"Order: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox[ RowBox[{"{", RowBox[{"3", ",", "3"}], "}"}], "SummaryItem"]}]}, { RowBox[{ TagBox["\"Method: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["\"Hermite\"", "SummaryItem"]}]}, { RowBox[{ TagBox["\"Periodic: \"", "SummaryItemAnnotation"], "\[InvisibleSpace]", TagBox["False", "SummaryItem"]}]}}, GridBoxAlignment -> { "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> False, GridBoxItemSize -> { "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, GridBoxSpacings -> { "Columns" -> {{2}}, "Rows" -> {{Automatic}}}, BaseStyle -> { ShowStringCharacters -> False, NumberMarks -> False, PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, GridBoxAlignment -> {"Columns" -> {{Left}}, "Rows" -> {{Top}}}, AutoDelete -> False, GridBoxItemSize -> { "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, BaselinePosition -> {1, 1}]}, Dynamic[Typeset`open$$], ImageSize -> Automatic]}, "SummaryPanel"], DynamicModuleValues:>{}], "]"}], InterpolatingFunction[{{0, 1}, {0, 1}}, { 5, 3, 1, {2, 2}, {4, 4}, 0, 0, 0, 0, Automatic, {}, {}, False}, {{0, 1}, {0, 1}}, {{{0, 1, 1}, {-1, 1, -1}}, {{-1, -1, 1}, {1, 1, 1}}}, { Automatic, Automatic}], Editable->False, SelectWithContents->True, Selectable->False], ",", "x"}], "]"}]], "Output", TaggingRules->{}, CellID->854360541,ExpressionUUID->"340d7a57-83fb-49af-9066-d40306369b86"] }, Open ]] }, Closed]] }, WindowSize->Automatic, WindowMargins->Automatic, WindowTitle->"InterpolatingFunctionToPiecewise | Example Notebook", Visible->False, TaggingRules->{ "Metadata" -> { "ResourceType" -> "Function", "Name" -> "InterpolatingFunctionToPiecewise", "Property" -> "ExampleNotebook"}}, FrontEndVersion->"13.3 for Mac OS X x86 (64-bit) (July 24, 2023)", StyleDefinitions->Notebook[{ Cell[ StyleData[ StyleDefinitions -> FrontEnd`FileName[{"Wolfram"}, "Reference.nb", CharacterEncoding -> "UTF-8"]]], Cell[ StyleData[All, "Working"], Editable -> True, DockedCells -> {}], Cell[ StyleData["Notebook"], Editable -> True, DockedCells -> {}, ScrollingOptions -> {"VerticalScrollRange" -> Automatic}], Cell[ StyleData[ "Section", StyleDefinitions -> StyleData["PrimaryExamplesSection"]], Editable -> True, ShowGroupOpener -> "Inline", WholeCellGroupOpener -> True], Cell[ StyleData["Subsection", StyleDefinitions -> StyleData["ExampleSection"]], Editable -> True, ShowGroupOpener -> "Inline", WholeCellGroupOpener -> True], Cell[ StyleData[ "Subsubsection", StyleDefinitions -> StyleData["ExampleSubsection"]], Editable -> True, ShowGroupOpener -> "Inline", WholeCellGroupOpener -> True], Cell[ StyleData[ "Subsubsubsection", StyleDefinitions -> StyleData["ExampleSubsubsection"]], Editable -> True, ShowGroupOpener -> "Inline", WholeCellGroupOpener -> True], Cell[ StyleData["Text", StyleDefinitions -> StyleData["ExampleText"]], Editable -> True], Cell[ StyleData["CodeText", StyleDefinitions -> StyleData["ExampleText"]], Editable -> True, CellMargins -> {{48, 40}, {3, 15}}, FontColor -> GrayLevel[0.45]]}, Visible -> False, FrontEndVersion -> "13.3 for Mac OS X x86 (64-bit) (July 24, 2023)", StyleDefinitions -> "PrivateStylesheetFormatting.nb"], ExpressionUUID->"9a2dab93-3316-4bba-8b59-e371d108204e" ] (* End of Notebook Content *) (* Internal cache information *) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[645, 23, 281, 8, 70, "Subsection",ExpressionUUID->"e515acdd-2aee-4c20-beaa-284bf0226213", CellID->904125756], Cell[929, 33, 727, 21, 70, "Text",ExpressionUUID->"b6166fe5-528d-44d9-bca3-984690968e6e", CellID->159500805], Cell[CellGroupData[{ Cell[1681, 58, 276, 7, 70, "Input",ExpressionUUID->"cdf659d0-9098-496e-8d29-08d26bbeb254", CellID->616621440], Cell[1960, 67, 13301, 269, 70, "Output",ExpressionUUID->"4c3b33f9-7548-4882-8db4-e0251120d94a", CellID->749680769] }, Open ]], Cell[15276, 339, 700, 21, 70, "Text",ExpressionUUID->"93bc4256-9199-439a-863a-79842f050a72", CellID->587297066], Cell[CellGroupData[{ Cell[16001, 364, 7896, 193, 70, "Input",ExpressionUUID->"23834e31-285c-4cd2-8059-810cbee7df9b", CellID->73549742], Cell[23900, 559, 4505, 135, 70, "Output",ExpressionUUID->"01468f71-2d95-4efb-80e2-8c421c6d4565", CellID->252824699] }, Open ]], Cell[28420, 697, 1290, 38, 70, "Text",ExpressionUUID->"8f4db2aa-d122-479d-bf29-c6b3ef47b303", CellID->99267511], Cell[CellGroupData[{ Cell[29735, 739, 489, 14, 70, "Input",ExpressionUUID->"4b3f3660-2749-44c3-99c3-1626ffa00994", CellID->81632050], Cell[30227, 755, 4022, 83, 70, "Output",ExpressionUUID->"51681fae-57b4-4ba4-8884-584cc3626d45", CellID->830316807] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[34298, 844, 272, 8, 70, "Subsection",ExpressionUUID->"ec89e379-3f2a-41fe-8a23-007228fd4e56", CellID->204653245], Cell[34573, 854, 169, 2, 70, "Text",ExpressionUUID->"116e9f81-61b3-4fd0-a29c-9eef8aa4afb1", CellID->657600106], Cell[CellGroupData[{ Cell[34767, 860, 8179, 207, 70, "Input",ExpressionUUID->"9fe5ea75-0600-4cf7-a7f0-cf1b156ebb1e", CellID->613785441], Cell[42949, 1069, 2922, 80, 70, "Output",ExpressionUUID->"331cf4df-6404-431b-b4c4-1b3f39bcfce6", CellID->575685743] }, Open ]], Cell[45886, 1152, 720, 21, 70, "Text",ExpressionUUID->"cd8cead7-ca3f-4724-bb42-84e46458762c", CellID->849664596], Cell[CellGroupData[{ Cell[46631, 1177, 8345, 212, 70, "Input",ExpressionUUID->"6ffb9afe-a625-441e-9ac5-7d67e9a20278", CellID->868557959], Cell[54979, 1391, 21450, 554, 70, "Output",ExpressionUUID->"8e76461c-84b5-470a-9dae-a5efd8450693", CellID->226659256] }, Open ]] }, Closed]], Cell[CellGroupData[{ Cell[76478, 1951, 274, 8, 70, "Subsection",ExpressionUUID->"c0a772b5-9491-4619-9f0f-d1b780810240", CellID->890561554], Cell[CellGroupData[{ Cell[76777, 1963, 282, 8, 70, "Subsubsection",ExpressionUUID->"708047e9-b29c-4630-8d7e-a095b4e2dad9", CellID->75472180], Cell[77062, 1973, 976, 27, 70, "Text",ExpressionUUID->"58a628e8-e348-4706-8bdd-d59e9bbb3625", CellID->352487], Cell[CellGroupData[{ Cell[78063, 2004, 7797, 194, 70, "Input",ExpressionUUID->"b11f762f-6294-4b88-9016-7cb3fc34635c", CellID->490691523], Cell[85863, 2200, 4505, 135, 70, "Output",ExpressionUUID->"5da77319-d0f6-44fe-b890-d7b338fcdb4f", CellID->252824700] }, Open ]], Cell[90383, 2338, 976, 28, 70, "Text",ExpressionUUID->"c569f342-e4c0-4db8-aa37-900d51d0cdd1", CellID->608868854], Cell[CellGroupData[{ Cell[91384, 2370, 7860, 195, 70, "Input",ExpressionUUID->"633ec976-01e5-421c-b1b7-b027b811a046", CellID->947124742], Cell[99247, 2567, 4463, 135, 70, "Output",ExpressionUUID->"11be49b1-85b0-485d-b4f4-da9d725b4110", CellID->253534914] }, Open ]], Cell[103725, 2705, 252, 5, 70, "Text",ExpressionUUID->"c6df11b0-c7e8-4b84-ab3d-9a6882c6019b", CellID->227727076], Cell[CellGroupData[{ Cell[104002, 2714, 7915, 197, 70, "Input",ExpressionUUID->"0f0df109-274a-4126-b5cd-0a31aa13de51", CellID->878583888], Cell[111920, 2913, 4484, 135, 70, "Output",ExpressionUUID->"5aa6b6f7-de36-459e-afad-74eda09adfcf", CellID->408832814] }, Open ]] }, Closed]], Cell[CellGroupData[{ Cell[116453, 3054, 288, 8, 70, "Subsubsection",ExpressionUUID->"8e54ac11-5678-45f9-85d3-1fadbac67544", CellID->797417395], Cell[116744, 3064, 1356, 38, 70, "Text",ExpressionUUID->"aa3ef397-379a-44d8-806b-f7ac2095e138", CellID->135344265], Cell[CellGroupData[{ Cell[118125, 3106, 8402, 213, 70, "Input",ExpressionUUID->"7e398480-7396-4ebc-925b-f2082a0629b4", CellID->169731484], Cell[126530, 3321, 13110, 359, 70, "Output",ExpressionUUID->"e1267f3c-3047-443d-b958-1eee1bad35e7", CellID->294135196] }, Open ]], Cell[139655, 3683, 771, 22, 70, "Text",ExpressionUUID->"3e9093cf-5134-402e-bf0e-4f3a956172dd", CellID->464120715], Cell[CellGroupData[{ Cell[140451, 3709, 8145, 205, 70, "Input",ExpressionUUID->"3a787bcc-7e3f-4e02-b04a-f137bbf19dd5", CellID->135537564], Cell[148599, 3916, 1614, 46, 70, "Output",ExpressionUUID->"3262c364-bee2-45da-a576-57c8f4355ab2", CellID->140433460] }, Open ]] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell[150274, 3969, 282, 8, 70, "Subsection",ExpressionUUID->"7c442c27-4670-481f-8fce-baf753ae20ef", CellID->158766396], Cell[150559, 3979, 1020, 27, 70, "Text",ExpressionUUID->"4ac707f9-12ee-4116-9d46-67ffbf076aca", CellID->103611698], Cell[CellGroupData[{ Cell[151604, 4010, 8607, 222, 70, "Input",ExpressionUUID->"4e060351-46a0-4580-bc2f-89588147f75e", CellID->621025076], Cell[160214, 4234, 16871, 378, 70, "Output",ExpressionUUID->"340d7a57-83fb-49af-9066-d40306369b86", CellID->854360541] }, Open ]] }, Closed]] } ] *) (* End of internal cache information *)