Mathematical function differentiation with C#?

后端 未结 5 1800
旧时难觅i
旧时难觅i 2020-12-05 03:57

I see that I can declare a function with (say)

public double Function(double parameter)

but what if I do want to take the derivative of tha

5条回答
  •  清歌不尽
    2020-12-05 04:00

    Are you thinking of Lambda Expressions?

    Basically you can pass a function into a function.

    So think of a Sort on an object. Depending on the nature of the object would help determine how the objects are sorted.

    But you can still create a generic sort function then pass in how to compare objects.

提交回复
热议问题