Welcome Guest! To enable all features please Login. New Registrations are disabled.

Error

 Previous Topic Next Topic
 OchkovVF #1 Posted : 29 January 2024 22:41:35(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 06/04/2023(UTC)Posts: 331Was thanked: 21 time(s) in 21 post(s) When x1(t)=sin(t) - no problem.When x1(t) is my function - an error!See please the attach. Three-Planets (Mathcad Block).sm (39kb) downloaded 8 time(s).
 Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.
 mkraska #2 Posted : 29 January 2024 23:31:21(UTC) Rank: Advanced MemberGroups: Registered Joined: 15/04/2012(UTC)Posts: 1,986Was thanked: 1124 time(s) in 721 post(s) This is because the solution functions are defined using interpolation. The interpolation functions have the X and Y vectors and the value of x as arguments. You try to provide a vector for x. Vectorize can handle only matrix arguments of the same size and successively calls the function with the j-th element of each vector. So vectorize would require your x vector to be of the same size as the data vectors. Even in this case this probably will fail because the data would be reduced to a single X_i and Y_i.Therefore, you have to use a loop. Martin Kraska Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
 Jean Giraud #3 Posted : 30 January 2024 05:12:24(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,866Was thanked: 981 time(s) in 809 post(s) Vectorize works fine in this document. Three-Planets.sm (42kb) downloaded 7 time(s).
 OchkovVF #4 Posted : 30 January 2024 06:28:13(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 06/04/2023(UTC)Posts: 331Was thanked: 21 time(s) in 21 post(s) Originally Posted by: Jean Giraud Vectorize works fine in this document. Three-Planets.sm (42kb) downloaded 7 time(s).Sorry - no. See please the attach Three-Planets.sm (40kb) downloaded 14 time(s).
 Jean Giraud #5 Posted : 31 January 2024 03:47:53(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,866Was thanked: 981 time(s) in 809 post(s) Originally Posted by: OchkovVF Sorry - no. See please the attachAs I open your returned document,both vectorize are red ... click on either one ... Bingo
 Users browsing this topic
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.