Skip to main content
deleted 47 characters in body
Source Link
Meow Mix
  • 923
  • 7
  • 13

The Challenge

Your challenge is to write a program that evaluates the following function:

f(x, t) = d^x / dt^x (sin t)

That is, the x-th derivative of sin t. In case you aren't familiar with calculus, here is a table of derivatives for the sine function:

...

d^-1 / dt^f(-1 (sin, t) = -cos t

d^0 / dt^0 f(sin0, t) = sin t

d^1 / dt^1 f(sin1, t) = cos t

d^2 / dt^2 f(sin2, t) == - sinsin t

...

The sequence repeats these 4 functions.

The Inputs

Your program should take in an integer to be used as the x value in the function, and a float to be used at the t value in the function.

Your program may use radians or degrees for the sine function.

The Output

Your program should output the value of f(x, t) given the integer x and float t.

Scoring

This is , so the shortest answer (in bytes) wins.

The Challenge

Your challenge is to write a program that evaluates the following function:

f(x, t) = d^x / dt^x (sin t)

That is, the x-th derivative of sin t. In case you aren't familiar with calculus, here is a table of derivatives for the sine function:

...

d^-1 / dt^-1 (sin t) = -cos t

d^0 / dt^0 (sin t) = sin t

d^1 / dt^1 (sin t) = cos t

d^2 / dt^2 (sin t) = - sin t

...

The sequence repeats these 4 functions.

The Inputs

Your program should take in an integer to be used as the x value in the function, and a float to be used at the t value in the function.

Your program may use radians or degrees for the sine function.

The Output

Your program should output the value of f(x, t) given the integer x and float t.

Scoring

This is , so the shortest answer (in bytes) wins.

The Challenge

Your challenge is to write a program that evaluates the following function:

f(x, t) = d^x / dt^x (sin t)

That is, the x-th derivative of sin t. In case you aren't familiar with calculus, here is a table of derivatives for the sine function:

...

f(-1, t) = -cos t

f(0, t) = sin t

f(1, t) = cos t

f(2, t)= -sin t

...

The sequence repeats these 4 functions.

The Inputs

Your program should take in an integer to be used as the x value in the function, and a float to be used at the t value in the function.

Your program may use radians or degrees for the sine function.

The Output

Your program should output the value of f(x, t) given the integer x and float t.

Scoring

This is , so the shortest answer (in bytes) wins.

edited tags
Link
DJMcMayhem
  • 59.6k
  • 17
  • 196
  • 348
Tweeted twitter.com/StackCodeGolf/status/764638580983595009
Post Reopened by a spaghetto, xnor, Martin Ender
added 83 characters in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

The Challenge

Your challenge is to write a program that evaluates the following function:

f(x, t) = d^x / dt^x (sin t)

That is, the x-th derivative of sin t. In case you aren't familiar with calculus, here is a table of derivatives for the sine function:

...

d^-1 / dt^-1 (sin t) = -cos t

d^0 / dt^0 (sin t) = sin t

d^1 / dt^1 (sin t) = cos t

d^2 / dt^2 (sin t) = - sin t

...

The sequence repeats these 4 functions.

The Inputs

Your program should take in an integer to be used as the x value in the function, and a float to be used at the t value in the function.

Your program may use radians or degrees for the sine function.

The Output

Your program should output the value of f(x, t) given the integer x and float t.

Scoring

This is , so the shortest answer (in bytes) wins.

The Challenge

Your challenge is to write a program that evaluates the following function:

f(x, t) = d^x / dt^x (sin t)

That is, the x-th derivative of sin t. In case you aren't familiar with calculus, here is a table of derivatives for the sine function:

...

d^-1 / dt^-1 (sin t) = -cos t

d^0 / dt^0 (sin t) = sin t

d^1 / dt^1 (sin t) = cos t

d^2 / dt^2 (sin t) = - sin t

...

The sequence repeats these 4 functions.

The Inputs

Your program should take in an integer to be used as the x value in the function, and a float to be used at the t value in the function.

Your program may use radians or degrees for the sine function.

The Output

Your program should output the value of f(x, t) given the integer x and float t.

The Challenge

Your challenge is to write a program that evaluates the following function:

f(x, t) = d^x / dt^x (sin t)

That is, the x-th derivative of sin t. In case you aren't familiar with calculus, here is a table of derivatives for the sine function:

...

d^-1 / dt^-1 (sin t) = -cos t

d^0 / dt^0 (sin t) = sin t

d^1 / dt^1 (sin t) = cos t

d^2 / dt^2 (sin t) = - sin t

...

The sequence repeats these 4 functions.

The Inputs

Your program should take in an integer to be used as the x value in the function, and a float to be used at the t value in the function.

Your program may use radians or degrees for the sine function.

The Output

Your program should output the value of f(x, t) given the integer x and float t.

Scoring

This is , so the shortest answer (in bytes) wins.

edited tags
Link
xnor
  • 146.6k
  • 26
  • 279
  • 652
Loading
Post Closed as "Not suitable for this site" by GamrCorps, Level River St, Martin Ender
Source Link
Meow Mix
  • 923
  • 7
  • 13
Loading