autodiff-dev / backend /contract /undefined_value.json
nhamid289's picture
Deploy autodiff ff35e9c
b9499ab verified
Raw History Blame Contribute Delete
837 Bytes
{
"description": "An input outside the function's domain is an error the student can fix",
"calls": {
"handle_set_function": {
"args": {
"expression": "log(x)"
},
"result": {
"inputs": [
"x"
],
"constants": {},
"nodes": [
{
"id": "w1",
"kind": "input",
"name": "x"
},
{
"id": "w2",
"kind": "op",
"op": "log",
"args": [
"w1"
]
}
],
"output": "w2"
}
},
"handle_set_run": {
"args": {
"mode": "reverse",
"inputs": {
"x": -1
}
},
"error": {
"kind": "user",
"message": "log(-1) has no finite value"
}
}
}
}