我在解决离散数学中的数学问题时遇到了麻烦,我需要将其转换为编程。问题全在于复合函数。我需要编写一个程序来计算用户给定的输入,它们是:
User input example
f(x) = 3x + 5
g(x) = x + 2
Computation
Replace the variable according to what is ask below
solution
Example #1
(f o g)(x) = 3x + 5
You need to replace x of f with the equation in g(x)
= 3(x+2)+5
= 3x + 6 + 5
= 3x + 11 //Final answer
这个问题的代码是什么?
尚方宝剑之说
相关分类