fork download
  1. Given the function:
  2.  
  3. 𝑓
  4. (
  5. 𝑥
  6. )
  7. =
  8. 1
  9. 2
  10. 𝑥
  11. 𝑇
  12. 𝑄
  13. 𝑥
  14. 1
  15. 𝑚
  16. 𝑗
  17. =
  18. 1
  19. 𝑚
  20. (
  21. 1
  22. +
  23. (
  24. 𝑏
  25. 𝑗
  26. 𝑎
  27. 𝑗
  28. 𝑇
  29. 𝑥
  30. )
  31. )
  32. Suppose that
  33. 𝑏
  34. 𝑅
  35. 𝑚
  36. and
  37. 𝐴
  38. 𝑅
  39. 𝑚
  40. ×
  41. 𝑛
  42. stack
  43. {
  44. 𝑏
  45. 𝑗
  46. }
  47. and
  48. {
  49. 𝑎
  50. 𝑗
  51. 𝑇
  52. }
  53. , respectively (rows of
  54. 𝐴
  55. are
  56. {
  57. 𝑎
  58. 𝑗
  59. }
  60. ). Derive the mathematical expression for the gradient and Hessian and show how it can be calculated using the Python snippets provided.
Success #stdin #stdout #stderr 0.02s 7056KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/QBpzLy/prog:1:6: Syntax error: Operator expected
ERROR: /home/QBpzLy/prog:69:10: Syntax error: Operator expected
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit