How to use Redo example 1
How to use Redo example 1
Tetsuo Ida
Deployed at
https://www.wolframcloud.com/obj/ida.tetsuo.ge/Published/how-to-use-redo.nb
https://www.wolframcloud.com/obj/ida.tetsuo.ge/Published/how-to-use-redo.nb
Load Eos
Load Eos
In[]:=
<<"EosHeader.m"
g3 Version 1.2.9
Eos3.31 (November 5,2020) running under Mathematica 12.1.1 for Mac OS X x86 (64-bit) (June 22, 2020)
Redo test
Redo test
Suppose we have constructed an origami.
C1
...
Ck
Then, we need to change Ck to Ck’.
In general, we have to execute
C1
...
Ck’.
To avoid selecting C1 ... Ck’ and execute them.
We write Redo[] immediately after Ck. and execute Redo[]. Redo[] performs exactly the same commands C1 ... Ck-1 , in this order. Then, we execute Ck’. By Redo[], we do not have to select C1 ... Ck-1 again.
C1
...
Ck
Then, we need to change Ck to Ck’.
In general, we have to execute
C1
...
Ck’.
To avoid selecting C1 ... Ck’ and execute them.
We write Redo[] immediately after Ck. and execute Redo[]. Redo[] performs exactly the same commands C1 ... Ck-1 , in this order. Then, we execute Ck’. By Redo[], we do not have to select C1 ... Ck-1 again.
In[]:=
EosSession["Redo test"];
In[]:=
MarkOn[];
Construction
Construction
In[]:=
NewOrigami[10];
In[]:=
HO["A","B"]!
Redo test: Step 3
Out[]=
In[]:=
HO["C","B"]!
Redo test: Step 5
Out[]=
In[]:=
HO["A","I"]
Redo test: Step 6
Out[]=
In[]:=
Redo[];HO["B","I"]
Redo test: Step 6
Out[]=
Proof
Proof
In[]:=
Goal["A"=!="I"];
In[]:=
Prove["Redo example 1"]
Proof is successful.
Redo test: Step 6
Out[]=
In[]:=
EndSession[];
Reconstruction
Reconstruction
After we finish the construction, remove the “cmd - redo” part in “cmd - redo - modifyCmd” part
In[]:=
EosSession["Redo test"];
In[]:=
MarkOn[];
Construction
Construction
In[]:=
NewOrigami[10];
In[]:=
HO["A","B"]!
Redo test: Step 3
Out[]=
In[]:=
HO["C","B"]!
Redo test: Step 5
Out[]=
In[]:=
HO["B","I"]
Redo test: Step 6
Out[]=
In[]:=
(***endofconstruction***)
Proof
Proof
In[]:=
Goal["A"=!="B"];
In[]:=
Prove["Redo-test"]
Proof is successful.
Redo test: Step 6
Out[]=
In[]:=
EndSession[];