You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
236 B

  1. template X() {
  2. signal input x;
  3. signal output y;
  4. signal x2;
  5. signal x3;
  6. var a;
  7. compute {
  8. a = (x*x*x+6)/x;
  9. y <-- a;
  10. }
  11. x2 <== x*x;
  12. x3 <== x2*x;
  13. x*y === x3+6;
  14. }
  15. component main = X();