«math» 태그된 질문

과제는 수학과 관련이 있습니다. [number] [number-theory] [arithmetic] [combinatorics] [graph-theory] [geometry] [abstract-algebra]와 같이보다 구체적인 태그를 사용하는 것도 고려하십시오.

6
레고 기어 비율
나는 거대한 레고 로봇을 만들고 있는데 기어 세트를 사용하여 특정 기어비를 생성해야합니다. 8, 16, 24 또는 40 개의 이빨과 같은 일반적인 레고 기어 크기의 기어가 많이 있습니다. 기어비를 입력 할 때 사용할 수있는 프로그램을 작성하면 요청 된 비율을 얻기 위해 사용해야하는 기어 조합을 알려줍니다. 입력 비율은 콜론으로 구분 된 두 …
23 code-golf  math 

4
중단되는 Oracle의 세 가지 미해결 문제 해결
h1 (f, * args) 및 h2 (f, * args) 함수가 제공됩니다. 둘 다 이미 정의 된 메소드입니다 (여기서 별표는 가변 개수의 인수를 나타냅니다) f는 함수이고 * args는 해당 함수에 전달할 매개 변수의 목록입니다. h1은 부울 값을 반환합니다. * args에서 호출 될 때 함수 f가 중지되면 True이고 그렇지 않으면 False입니다 (실행중인 …
23 code-golf  math 

7
접두사 표현식을 접미사 표기법으로 변환
이 닫힌 질문 의 제목을 보았을 때 , 흥미로운 코드 골프 도전처럼 보였습니다. 따라서 다음과 같이 발표하겠습니다. 도전: 산술 식의 지정된, 프로그램, 서브 루틴 또는 식 작성 중위 표기 , 등 1 + 2, 동일한 표현 출력 후위 표기 , 즉 1 2 +. (참고 : 비슷한 도전이 1 월 …
23 code-golf  math 

30
LITERALLY 프라임 인 프라임 테스트
지정된 숫자의 우선 순위를 테스트하고 출력을 부울 값으로 제공하는 프로그램을 작성하십시오 (True is prime). 귀하의 프라임 테스트는 숫자 1에 유효 할 수 있습니다 (그러나 반드시 그런 것은 아닙니다). 다음은 캐치입니다. 프로그램 자체는 소수입니다. 모든 문자 (공백 포함)를 해당 유니 코드 / ASCII 값 ( table )으로 변환하십시오. 그런 다음 모든 …

19
Dijkstra의 도전
올해 50 세가되는 대화식 도구로 APL 을 기리기 위해 발표 배경 Ken [Iverson] 은 1963 년 8 월 뉴저지 프린스턴의 기계 언어 구조에 관한 실무 회의 에서 프로그래밍 언어의 형식론을 발표했습니다 . (Backus, Curry, Dijkstra, Floyd, Iverson, Newell, Perlis, Wilkes). 이 논문은 또한 발표 후 발생한 토론과 Ken과 [Edsger] Dijkstra …

13
is_gaussian_prime (z)?
직무 a,b가우스 정수 z = a+ib(복소수) 를 나타내는 두 정수를 허용하는 함수를 작성하십시오 . 이 프로그램은 참 또는 거짓 여부에 따라 반환해야합니다 a+ibA는 가우스 주요 여부 . 정의: a + bi 다음 조건 중 하나를 충족하는 경우에만 가우스 소수입니다. a그리고 b모두 제로하고 a^2 + b^2소수 a0, |b|소수입니다|b| = 3 (mod …


23
거꾸로 된 피라미드 추가…
거꾸로 된 피라미드 추가는 숫자 목록을 가져와 한 숫자에 도달 할 때까지 숫자를 연속적으로 추가하는 프로세스입니다. 숫자 2, 1, 1가 주어지면 다음 프로세스가 발생합니다. 2 1 1 3 2 5 이것은 숫자로 끝납니다 5. 당신의 임무 Upside-Down Pyramid (오름차순)의 오른쪽이 주어지면 원래 목록을 반환하는 프로그램이나 함수를 작성하십시오. 새로운 추가 챌린지 …

23
ASCII 아트 팔각형
입력 integer가 주어지면 문자 n > 1로 구성된 측면 길이를 가진 ASCII 아트 팔각형을 출력하십시오 n. 아래 예를 참조하십시오. n=2 ## # # # # ## n=3 ### # # # # # # # # # # ### n=4 #### # # # # # # # # # …
22 code-golf  ascii-art  code-golf  geometry  code-golf  balanced-string  code-golf  cops-and-robbers  code-challenge  cops-and-robbers  code-golf  code-golf  random  cryptography  code-golf  array-manipulation  number  code-challenge  integer  code-golf  math  integer  code-golf  math  math  parsing  image-processing  test-battery  math  number  combinatorics  fastest-code  code-golf  code-golf  math  number-theory  rational-numbers  polynomials  code-golf  math  geometry  code-golf  code-golf  number-theory  primes  factoring  code-golf  restricted-source  code-golf  string  decision-problem  counting  code-golf  math  sequence  fibonacci  code-golf  array-manipulation  counting  code-golf  array-manipulation  number-theory  code-golf  array-manipulation  code-golf  random  code-golf  string  hexadecimal  code-golf  string  code-challenge  sorting  code-golf  number  floating-point  code-golf  sorting  code-golf  decision-problem  fibonacci  code-golf  number  combinatorics  code-golf  string  code-golf  math  code-golf  electrical-engineering  code-golf  javascript  code-golf  base-conversion  code-golf  array-manipulation  matrix  binary-matrix  code-golf  kolmogorov-complexity  python  perl  ruby  code-golf  number  code-golf  optimization  integer-partitions  code-golf  string  code-golf  ascii-art 

28
간단한 단어 래퍼 만들기
(참고 : 이것은 처음으로 코드 골프 질문이지만, 내가 알 수있는 한, 아무도 정확히 이것을하지 않았으므로 좋을 것입니다.) 당신의 임무는 문자열 s과 정수 를 취하고 n그 텍스트를 여러 줄로 감싸서 반환하거나 출력 하는 프로그램이나 함수를 만드는 것 입니다. 각 단어는 한 줄에 있어야합니다. 즉, 단어가 중간에 쪼개지지 않습니다. 각 줄은 더 …
22 code-golf  string  code-golf  string  parsing  apl  math  primes  integer  fastest-code  code-golf  math  primes  integer  code-golf  ascii-art  kolmogorov-complexity  code-golf  string  array-manipulation  code-golf  number  code-golf  sequence  code-golf  math  arithmetic  code-golf  date  conversion  code-golf  geometry  combinatorics  grid  code-golf  string  code-golf  counting  java  code-golf  chess  code-golf  path-finding  conversion  atomic-code-golf  logic-gates  code-golf  fibonacci  code-golf  ascii-art  fractal  code-golf  quine  code-golf  string  code-golf  array-manipulation  decision-problem  code-golf  quine  code-golf  code-challenge  array-manipulation  code-challenge  word-search  code-golf  binary  conversion  code-golf  code-golf  restricted-source  code-golf  kolmogorov-complexity  restricted-source  code-golf  kolmogorov-complexity  random  animation 

24
ogl-edocf 도전
입력 범위의 ASCII 문자로 구성된 비어 있지 않은 섞인 문자열 입니다.[ 32..126 ][32..126][32..126] 산출 입력 문자열에 연속적인 회전을 적용하여 출력을 얻습니다. [a-zA-Z]입력 문자열의 각 문자 ( )에 대해 왼쪽에서 오른쪽으로 : 문자가 대문자 인 경우 모든 문자를 왼쪽으로 한 위치 씩 회전 문자가 소문자 인 경우 오른쪽 앞의 한 위치 …
22 code-golf  string  code-golf  string  code-golf  string  parsing  brainfuck  code-challenge  python  hello-world  error-message  code-golf  string  code-golf  number  integer  counting  subsequence  code-golf  string  cipher  code-golf  array-manipulation  arithmetic  integer  matrix  code-golf  math  sequence  code-golf  restricted-source  pi  popularity-contest  cops-and-robbers  polyglot  popularity-contest  cops-and-robbers  polyglot  code-golf  file-system  king-of-the-hill  code-golf  number  sequence  integer  rational-numbers  string  code-challenge  source-layout  code-golf  ascii-art  king-of-the-hill  code-golf  array-manipulation  sorting  code-golf  string  code-golf  restricted-source  source-layout  tips  math  code-challenge  permutations  logic-gates  code-golf  number  random  integer  code-golf  math  code-golf  math  number  decision-problem  king-of-the-hill  python  board-game  code-challenge  brainfuck  busy-beaver  code-golf  number  cops-and-robbers  polyglot  obfuscation  answer-chaining  code-golf  number  integer  conversion  code-golf  string  parsing  code-golf  ascii-art  number  king-of-the-hill  javascript  code-golf  source-layout  radiation-hardening  code-golf  array-manipulation  matrix  code-golf  string  graph-theory  code-golf  array-manipulation  decision-problem  code-golf  string  ascii-art  code-golf  string  code-golf  array-manipulation 

16
3x3 행렬의 역함수를 구합니다
도전 a, b, c, d, e, f, g, h, i제곱 행렬에 해당하는 입력으로 9 개의 숫자가 주어집니다 . M=⎛⎝⎜adgbehcfi⎞⎠⎟M=(abcdefghi)\mathbf{M} = \begin{pmatrix}a& b& c\\ d& e& f\\ g& h& i\end{pmatrix} 행렬의 역수 M−1M−1\mathbf{M}^{-1} 찾아 성분을 출력합니다. 역행렬 행렬 3의 3에 대한 역은 다음 방정식을 따릅니다. MM−1=M−1M=I=⎛⎝⎜100010001⎞⎠⎟MM−1=M−1M=I=(100010001)\mathbf{MM}^{-1} = \mathbf{M}^{-1}\mathbf{M} = \mathbf{I} = …

18
숫자의 RTA (Reverse-Then-Add) 근
RTA (reverse-then-add) 시퀀스는 숫자를 역방향에 추가하고 결과에 대해 프로세스를 반복하여 얻은 시퀀스입니다. 예를 들어 5+5=10⇒10+01=11⇒11+11=22⇒22+22=44⇒ ...5+5=10⇒10+01=11⇒11+11=22⇒22+22=44⇒ ... 5 + 5 = 10 \Rightarrow 10 + 01 = 11 \Rightarrow 11 + 11 = 22 \Rightarrow 22 + 22 = 44 \Rightarrow\text{ }... 따라서, 5의 RTA 서열은 10, 11, 22, 44, …
22 code-golf  math  number 

17
월시 행렬 생성
월시 행렬은 광장 매트릭스의 특별한 종류 양자의 응용 프로그램 컴퓨팅 (아마 다른 곳에서하고 있지만, 나는 단지 양자 컴퓨팅에 대한 관심). 월시 행렬의 속성 치수는 우리가 그들을 호출, 여기에 2의 지수 이러한 행렬을 참조 할 수 있습니다, 따라서 2의 동일한 전력이다 W(0), W(1), W(2)... W(0)로 정의됩니다 [[1]]. 의 경우 n>0, W(n)외모가 …
22 code-golf  math  matrix 

13
Hafnian 코드 골프
문제는 매트릭스의 Hafnian에 대한 codegolf 를 작성하는 것입니다 . 의 Hafnian 2n-by- 2n대칭 행렬 A로 정의된다 : 여기서 S 2N가 에서 모든 정수 순열의 집합을 나타냄 1에 2n즉, [1, 2n]. Wikipedia 링크는 인접 행렬에 대해 설명하지만 실제 대칭 입력 행렬에 대해서는 코드가 작동해야합니다. Hafnian의 응용에 관심이있는 사람들을 위해 mathoverflow 링크가 …

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.