derivate problem composite function

derivate problem composite function - Messages

#1 Posted: 6/3/2015 11:20:44 AM
dav47

dav47

0 likes in 5 posts.

Group: User

Hi to all, I create a composed function, but I don't understand what is wrong.
Please help
quest.png
#2 Posted: 6/3/2015 12:08:04 PM
dav47

dav47

0 likes in 5 posts.

Group: User

I attach the file to clarify the problem
2spline.sm (26 KiB) downloaded 43 time(s).
#3 Posted: 6/3/2015 12:54:03 PM
Ernesto

Ernesto

13 likes in 74 posts.

Group: User

When defining a1, b1, c1.. etc, you define them as rows of a matrix (notice how they are still in parenthesis), and they remain a single entry matrix. This causes an error later on since you can't take a derivative of a matrix.

Instead of extracting the row, extract the element by using the "el" function, or write the matrix name followed by "[" and the row number.

eg. a.1 : M[1
1 users liked this post
Davide Carpi 6/3/2015 7:47:00 PM
#4 Posted: 6/3/2015 4:35:28 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

The cases() function helps a lot in writing piecewise continuous functions in a readable way.
2spline_Kr.sm (23 KiB) downloaded 53 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Davide Carpi 6/3/2015 7:47:00 PM
#5 Posted: 6/4/2015 3:45:01 AM
dav47

dav47

0 likes in 5 posts.

Group: User

Hi, Ernesto and Martin.
Thank you for your help.
I'm new to the use of smath studio. I understand my mistake....It's a mathematical error!
Now I have istalled the Function extension.
Bye
Davide
  • New Posts New Posts
  • No New Posts No New Posts