r2597
| 1 | [[분류:냥]] |
|---|
r2631
| 2 | ||<tablebgcolor=#fff,#1c1d1f'> <tablebgcolor=#fff,#1c1d1f'''{{{#red \'}}}'''>왜 문제가 없지 || |
|---|
| 3 | |
|---|
r2629
| 4 | {{{#!wikistyle="color:red" |
|---|
| 5 | wikistyle}}} |
|---|
| 6 | {{{#!wikistyle="color:red" |
|---|
| 7 | wikistyle}}}{{{#!wiki- - - - --style="color:red"dark-style="color:blue"dark-style="color:green" |
|---|
| 8 | wikistyle}}} |
|---|
| 9 | }}}{{{{{{#!wikistyle="color:red" |
|---|
| 10 | wikistyle}}} |
|---|
| 11 | {{{#!wikistyle="color:red" |
|---|
| 12 | wikistyle{{{{{{}}}}}}}}}{{{#!wikistyle="color:red" |
|---|
| 13 | wikistyle}}} |
|---|
| 14 | ## |
|---|
| 15 | {{{#!foldingfolding접기 |
|---|
| 16 | foldingfolding접기}}}{{{#!ifa==null |
|---|
| 17 | ifa==null}}}{{{#!syntaxpython |
|---|
| 18 | print('asdf')}}}{{{#!html{{{#!html이게왜됨}}}}}} |
|---|
| 19 | ## |
|---|
| 20 | folding, wiki(스타일), html은 뒤에 띄어쓰기 없어도 작동. |
|---|
| 21 | 다만 dark-style은 꼭 "-"만 사용 가능. |
|---|
| 22 | if, syntax는 띄어쓰기 없을 시 에러. |
|---|
| 23 | ## |
|---|
r2624
| 24 | == 문단 == |
|---|
r2636
| 25 | {{{-5 |
|---|
r2637
| 26 | [include(틀:계산기2, a=9223372036854775808, f=-, b=-9223372036854775800)] |
|---|
r2636
| 27 | [include(틀:계산기2, a=., f=-, b=-.)] |
|---|
| 28 | [include(틀:계산기2, a=-, f=+, b=-)] |
|---|
| 29 | [include(틀:계산기2, a=10, f=/, b=3)] |
|---|
r2624
| 30 | [include(틀:계산기2, a=-5, f=/, b=200)] |
|---|
| 31 | [include(틀:계산기2, a=-5, f=*, b=200)] |
|---|
| 32 | [include(틀:계산기2, a=123459, f=/, b=2)] |
|---|
| 33 | [include(틀:계산기2, a=12345, f=-, b=67890)] |
|---|
r2630
| 34 | [include(틀:계산기2, a=123456789012345678, f=-, b=-901234567890123456)] |
|---|
r2632
| 35 | [include(틀:계산기2, a=123456789012345678.901234567890123456, f=+, b=789012345678901234.567890123456789012)] |
|---|
r2639
| 36 | [include(틀:계산기2, a=123456789012345678.9012345678901234567, f=+, b=789012345678901234.567890123456789012)] |
|---|
r2624
| 37 | [include(틀:계산기2, a=-1, f=*, b=-5)] |
|---|
| 38 | [include(틀:계산기2, a=-3, f=/, b=7)] |
|---|
r2633
| 39 | [include(틀:계산기2, a=1.1, f=+, b=0.1)] |
|---|
r2634
| 40 | [include(틀:계산기2, a=1.123, f=+, b=0.877)] |
|---|
| 41 | [include(틀:계산기2, a=1.123, f=+, b=0.878)] |
|---|
r2635
| 42 | [include(틀:계산기2, a=1.333, f=-, b=4.354)] |
|---|
r2638
| 43 | [include(틀:계산기2, a=7.89, f=-, b=12.345)] |
|---|
| 44 | [include(틀:계산기2, a=1, f=-, b=0.000000000000000001)]}}} |
|---|
r2633
| 45 | 아직은 소수끼리의 계산은 되지 않는 모양이다. 사실 그도 그럴 것이 gauss함수를 가져오지 않았기 때문) |
|---|
r2624
| 46 | |
|---|
| 47 | {{{#!if json={'a':'b', 'c':'d'} |
|---|
| 48 | json={'a':'b', 'c':'d'}[br] |
|---|
| 49 | }}}{{{#!if json['a'] == 'b' |
|---|
| 50 | json['a'] == 'b'[br] |
|---|
| 51 | }}}{{{#!if list = ['a', 'b'] |
|---|
| 52 | list = ['a', 'b'][br] |
|---|
| 53 | }}}{{{#!if list[1] == 'b' |
|---|
| 54 | list[1] == 'b'[br] |
|---|
| 55 | }}} |
|---|
| 56 | |
|---|
| 57 | [[../냥]] < 볼드체. 단, {{{../}}}뒤에 붙는 이름이 자기자신과 같은 이름이면 볼드체, 다른 이름(예 : [[../냥냥]], [[../냥/냥]])이면 볼드체가 아니다. 문서명이 '[[냥/냥|(상위문서명)/냥]]'일 경우에도 볼드체가 된다. 이 문서에는 상위 문서가 없으니 그냥 '냥' 으로 링크되는 듯 하다. |
|---|
| 58 | [[냥#]] < 볼드체 |
|---|
| 59 | [[냥#ㅁㄴㅇㄹ|냥#ㅁㄴㅇㄹ]] < 볼드체아님 |
|---|
| 60 | [[문서:냥]] < 볼드체아님 |
|---|
| 61 | |
|---|
| 62 | [include(틀:계산기, r=13)] |
|---|
| 63 | \[include(틀:계산기, r=13)] |
|---|
| 64 | 생각해보니까 그냥 r을 지정할 수도 있겠구나 |
|---|
| 65 | [include(틀:계산기, a=123456789, f=+, b=1)] |
|---|
| 66 | [include(틀:계산기, a=123456789, f=-, b=1)] |
|---|
| 67 | [include(틀:계산기, a=123459, f=*, b=2)] |
|---|
| 68 | [include(틀:계산기, a=123459, f=/, b=2)] |
|---|
| 69 | |
|---|
| 70 | == ㅁㄴㅇㄹ == |
|---|
| 71 | [include(a)]''''''[include(a)][include(a)] |
|---|
| 72 | [[]][include(a)][include(a)][include(a)] |
|---|
| 73 | |
|---|
| 74 | {{{#!wiki style="background: skyblue; margin: 0 auto; padding: 5px; max-width: 500px" |
|---|
| 75 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><bgcolor=#000>|| |
|---|
| 76 | |
|---|
| 77 | ||<tablealign=center><tablewidth=100%><tablebordercolor=transparent><tablebgcolor=red><rowbgcolor=#000>|| |
|---|
| 78 | ||<colbgcolor=#000>|| |
|---|
| 79 | ||<tan>|| |
|---|
| 80 | |
|---|
| 81 | ||<tablealign=center><tablewidth=100%><bgcolor=#000>|| |
|---|
| 82 | |
|---|
| 83 | ||<tablealign=center><tablewidth=100%>||}}} |
|---|
| 84 | Mozilla/5.0 (compatible; Daum/1.0; +http://ws.daum.net/aboutkr.html) ok |
|---|
| 85 | Mozilla/5.0 (compatible; coccocbot-web/1.0; +http://help.coccoc.com/web) ok |
|---|
| 86 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 87 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 88 | ---- |
|---|
| 89 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] |
|---|
| 90 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961, uuid=2d701244-1d84-4716-8717-e0756914096d)] |
|---|
| 91 | ---- |
|---|
| 92 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 93 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=-1, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 94 | ---- |
|---|
| 95 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] |
|---|
| 96 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=)] |
|---|
| 97 | ---- |
|---|
| 98 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 99 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 100 | ---- |
|---|
| 101 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 102 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 103 | ---- |
|---|
| 104 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 105 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, UUID=2d701244-1d84-4716-8717-e0756914096x)] |
|---|
| 106 | ---- |
|---|
| 107 | \[include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 108 | [include(틀:문서 가져옴/the seed, 위키=더, 문서명=검색, 버전=32, uuid=2d701244-1d84-4716-8717-e07569140961, UUID=2d701244-1d84-4716-8717-e07569140961)] |
|---|
| 109 | ---- |
|---|
| 110 | \[include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] |
|---|
| 111 | [include(틀:isuuid, uuid=1dd4a127-1b8d-4788-8cea-9ff8b1ddd06e)] |
|---|
| 112 | ---- |
|---|
| 113 | \[include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] |
|---|
| 114 | [include(틀:isuuid, uuid=xdd4a127-1b8d-4788-8cea-9ff8b1ddd0xx)] |
|---|
| 115 | \[include(틀:isuuid, uuid=냥)] |
|---|
| 116 | [include(틀:isuuid, uuid=냥)] |
|---|
| 117 | [include(틀:ㅁ, str=Hello\, World!)] |
|---|
| 118 | toString() 가능 |
|---|
| 119 | parseInt() x |
|---|
| 120 | |
|---|
| 121 | == == |
|---|
r2584
| 122 | {{{#!wiki style="font-weight: 300; font-size: 20px" |
|---|
| 123 | {{{#!if 식 = '11+2' |
|---|
r2597
| 124 | @식=11+2@}}} = {{{#!if s1=false, s2=false, s3=false, j=1+0, i=0+0, k=1+0 |
|---|
r2593
| 125 | ##switch1 : 숫자 계속 탐색하기, switch2 : 소수점 아래 기입하기. switch3 : 중복 실행 방지. |
|---|
r2594
| 126 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
r2593
| 127 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
r2594
| 128 | ##숫자를 발견할 경우 |
|---|
r2591
| 129 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
r2595
| 130 | ##여기에 앞자리가 음수냐 아니냐를 읽는 판별을 만들어야 합니다. ㅏ 이걸 생각 못했네요 그럼 좀 많이 길어지는데 |
|---|
r2591
| 131 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 132 | ##숫자를 계속 발견할 경우 (소수점일 수도 있습니다. 여기서는 숫자일 경우) |
|---|
r2592
| 133 | ##여기에서 소수점 위를 기입하냐 소수점 아래를 기입하냐 소수점 아래라면 소수점 아래 몇번째 자리를 기입하느냐를 적어야 합니다. |
|---|
r2597
| 134 | {{{#!if s2==false |
|---|
| 135 | ##정수 자리를 기입하는 경우 |
|---|
r2595
| 136 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
r2597
| 137 | }}}}}}{{{#!if s2==true |
|---|
| 138 | ##소수점 아래 자리를 기입하는 경우 |
|---|
| 139 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true |
|---|
| 140 | }}}{{{#!if k+=1 |
|---|
| 141 | ##다음 소수점 자리 찾기 |
|---|
r2602
| 142 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
|---|
r2605
| 143 | ##앞에서 숫자를 발견한 다음 소수점을 발견할 경우 (소수점 발견은 최초 1회에 한함) |
|---|
r2597
| 144 | {{{#!if s2=true, s3=true, k=1+0 |
|---|
| 145 | ##switch2 : 켜기 |
|---|
r2607
| 146 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46))||((s2==true)&&!this['d'+i]))&&(s3==false) |
|---|
| 147 | ##숫자가 더 이상 나오지 않고 소수점을 발견하지 못했을 경우, 소수점을 발견한 상황인데 숫자가 나오지 않을 경우 (소수점이 다시 나오는 경우가 자동적으로 포함) |
|---|
r2591
| 148 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
r2592
| 149 | ##소수점 아래 기입하는 스위치도 off, 다음 index(j) 매김. |
|---|
r2597
| 150 | }}}{{{#!if s3==true |
|---|
| 151 | ##여기까지 과정을 거쳤다면 스위치 off. |
|---|
| 152 | {{{#!if s3=false |
|---|
| 153 | }}}}}} |
|---|
| 154 | }}}{{{#!if i+=1 |
|---|
r2594
| 155 | }}} |
|---|
r2595
| 156 | ## |
|---|
r2599
| 157 | {{{#!if false |
|---|
r2600
| 158 | ##이 if문은 실행되지 않는 단락. 주석만 제거하고 복사 붙여넣기. |
|---|
r2599
| 159 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 160 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 161 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 162 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 163 | {{{#!if s2==false |
|---|
| 164 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 165 | }}}}}}{{{#!if s2==true |
|---|
| 166 | {{{#!if this['v'+j] = this['v'+j]+(10.0**(-k))*(+(식.substr(i,1))), s3=true |
|---|
| 167 | }}}{{{#!if k+=1 |
|---|
r2603
| 168 | }}}}}}}}}{{{#!if (s1==true)&&(s2==false)&&(식[i]==46)&&(s3==false) |
|---|
r2599
| 169 | {{{#!if s2=true, s3=true, k=1+0 |
|---|
r2604
| 170 | }}}}}}{{{#!if (s1==true)&&(((s2==false)&&!this['d'+i]&&(식[i]!=46)||(s2==false))||((s2==true)&&!this['d'+i]&&(식=[i]==46)))&&(s3==false) |
|---|
r2599
| 171 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 172 | }}}{{{#!if s3==true |
|---|
| 173 | {{{#!if s3=false |
|---|
| 174 | }}}}}} |
|---|
| 175 | }}}{{{#!if i+=1 |
|---|
| 176 | }}} |
|---|
| 177 | #### |
|---|
| 178 | }}} |
|---|
| 179 | ## |
|---|
r2600
| 180 | {{{#!if this['v1'] == 1 |
|---|
| 181 | this['v1'] == 1}}} |
|---|
| 182 | ## |
|---|
| 183 | {{{#!if s3=false |
|---|
| 184 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 185 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 186 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 187 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 188 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 189 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 190 | {{{#!if s2=true, s3=true |
|---|
| 191 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 192 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 193 | }}}}}}{{{#!if i+=1 |
|---|
| 194 | }}} |
|---|
| 195 | ## |
|---|
r2595
| 196 | {{{#!if this['v1'] == 11 |
|---|
| 197 | this['v1'] == 11}}} |
|---|
| 198 | ## |
|---|
r2596
| 199 | {{{#!if s3=false |
|---|
| 200 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 201 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 202 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 203 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 204 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 205 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 206 | {{{#!if s2=true, s3=true |
|---|
| 207 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 208 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 209 | }}}}}}{{{#!if i+=1 |
|---|
| 210 | }}}{{{#!if s3=false |
|---|
| 211 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57) |
|---|
| 212 | }}}{{{#!if (s1==false)&&this['d'+i]&&(s3==false) |
|---|
| 213 | {{{#!if this['v'+j] = +(식.substr(i,1)), s1=true, s3=true |
|---|
| 214 | }}}}}}{{{#!if (s1==true)&&this['d'+i]&&(s3==false) |
|---|
| 215 | {{{#!if this['v'+j] = 10*this['v'+j]+(+(식.substr(i,1))), s3=true |
|---|
| 216 | }}}}}}{{{#!if (s1==true)&&(식[i]==46)&&(s3==false) |
|---|
| 217 | {{{#!if s2=true, s3=true |
|---|
| 218 | }}}}}}{{{#!if (s1==true)&&!this['d'+i]&&(s3==false) |
|---|
| 219 | {{{#!if j+=1, s1=false, s2=false, s3=true |
|---|
| 220 | }}}}}}{{{#!if i+=1 |
|---|
| 221 | }}} |
|---|
r2595
| 222 | ## |
|---|
r2596
| 223 | {{{#!if this['v2'] == 2 |
|---|
| 224 | this['v2'] == 2}}} |
|---|
r2595
| 225 | ## |
|---|
| 226 | ## |
|---|
| 227 | ## |
|---|
| 228 | ## |
|---|
r2593
| 229 | {{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
r2586
| 230 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
| 231 | }}}{{{#!if this['d'+i] = (식[i]>=48&&식[i]<=57), i+=1 |
|---|
r2584
| 232 | }}} |
|---|
r2586
| 233 | ## 식 검증이 됐다 치면 |
|---|
r2587
| 234 | ## dn : true - 수 / false - 연산자 |
|---|
r2586
| 235 | {{{#!if this['d0'] |
|---|
| 236 | 1}}}{{{#!if this['d1'] |
|---|
| 237 | 1}}}{{{#!if !this['d2'] |
|---|
| 238 | +}}}{{{#!if this['d3'] |
|---|
r2585
| 239 | 2}}} |
|---|
r2587
| 240 | ## in : 11+2 에서 '11'은 0번째 위치, '+'는 2번째 위치.. > 0, 2, 3 > 위치 기억 / 뺄셈으로 자릿수 계산 |
|---|
| 241 | ## 보다 좋은 방법이 있ㅅ을 것 같은데음ㅁ.. |
|---|
| 242 | {{{#!if i = 1, j = 1, i0 = 0 |
|---|
| 243 | }}} |
|---|
| 244 | {{{#!if t = this['d0'] != this['d1'], t |
|---|
| 245 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 246 | }}}}}}{{{#!if !t |
|---|
| 247 | {{{#!if j+=1 |
|---|
| 248 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t |
|---|
| 249 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 250 | }}}}}}{{{#!if !t |
|---|
| 251 | {{{#!if j+=1 |
|---|
| 252 | }}}}}}{{{#!if t = this['d1'] != this['d2'], t |
|---|
| 253 | {{{#!if this['i'+i] = j, j+=1, i+=1 |
|---|
| 254 | }}}}}}{{{#!if !t |
|---|
| 255 | {{{#!if j+=1 |
|---|
r2585
| 256 | }}}}}} |
|---|
r2608
| 257 | ## {{{#!if i0 == 0 |
|---|
| 258 | ## i0 == 0 }}}{{{#!if i1 == 2 |
|---|
| 259 | ## i1 == 2 }}}{{{#!if i2 == 3 |
|---|
| 260 | ## i2 == 3 }}} |
|---|
r2587
| 261 | ## {{{#!if list = [d0, d1, d2, d3] |
|---|
| 262 | ## }}} |
|---|
r2624
| 263 | }}} |
|---|