Script - Bitcoin Programming Discussion

#1

Welcome to the discussion about this section. Here you can ask questions or post feedback about this specific lecture.

0 Likes

#2

Assignment Answer

2 2 OP_MUL 3 3 OP_MUL OP_ADD

0 Likes

#3

Answer:
3 3 OP_MUL 2 2 OP_MUL OP_ADD

0 Likes

#4

2 2 op_mul 3 3 op_mul op_add

0 Likes

#5
2 2 OP_MUL
3 3 OP_MUL
OP_ADD

Give us something harder guys, this is too basic :stuck_out_tongue:

Edit: I’ve decided do also do it without disabled operations, i.e. without OP_MUL and using only OP_ADD

2 2 OP_ADD
3 3 OP_ADD 3 OP_ADD
OP_ADD
1 Like

#6
2 2 OP_MUL
3 3 OP_MUL
OP_ADD

The program.

The evaluation :
<program above> ==> 4 3 3 OP_MUL OP_ADD ==> 4 9 OP_ADD ==> 13

1 Like

#7

The reverse Polish notation seems to be unfortunately omitted in the video

2 * 2 + 3 * 3
==> 2*2 | 3* 3 | +
==> [ [2; 2; *] ; [3; 3; *] ; + ]

1 Like

#8

2 2 op_mul 3 3 op_mul op_add

0 Likes

#9

Here is my answer: 2 2 OP_MUL 3 3 OP_MUL OP_ADD

0 Likes