QUICK!!

QUICK!!

WRITE A FUNCTION THAT FINDS THE DERIVATIVE AT A POINT OF A FUNCTION!!

OR THIS BRIB WILL STAB YOU!!

Fuck off OP.

Symbolic or numerical differentiation?

I don't know what you want me to do.

def deriv(f, pt):
h = .00001
def ret(x):
dfxdx = (f(x+h)-f(x))/h
return "{0:.4f}".format(dfxdx)
return ret(pt)

What's a "BRIB"?

u mad faget

an intentional misspelling of birb

numerical

derivative((x*x), 10) will equal 20 because the derivative of x*x is 2x, and 2(10) = 20

deriv f pt = ((f (pt + 0.00001))-(f pt))/0.00001

bümp

/* probable FUCK UP on the function pointer syntax, but who the hell cares? */
double derivative(double (*func)(double), double point)
{
return
(func(point + EPSILON) - func(point))
/ EPSILON;
}

Here's you're (you)

BUMP

op plz provide feedback

Legitimately unexpected.

Woah

hopefully the bird will kill me

nigger

>h = .00001
HAHA good one user.

Lys

top kek

>only one who used epsilon instead of something like 0.00001
Well done

D(f(x))

this made me laugh

deriv f x = (f (x + 1e-5) - f x) * 1e5

>eight replies

Top zozzle even Sup Forums is retarded.

heh

>using zozzle
>in 2017

Worse than OP

Why's the right side of this image blurry?

You

>in 2017
FUCK

And YOU tell OP to fuck off? How bout you fuck off buddy.

>How bout you fuck off buddy.
>mfw
Kek return to reddit newfag

function [y] = diffatpoint(f,x)

y = feval(matlabFunction(diff(f)),x);

end


>Not coding in the best programming language.

I bet you fags don't even have time to get a coffee while I your program runs.

Y

Why do you have a function inside a function?

>Current year
>Not saying maximum milkdude

I didn't expect it, because of that here is your (you)

>X*X is 2X
No

Read it again, fuckbib, the derivative of x*x is 2x

Started reading, 3 lines in got bored and decided to skip to the last line, worth it lads

You sneaky faggot

I don't have a CS degree. I majored in business studies. Guess I am dead then.

The original bird poster at least had the decency to post his own reference solution, you pathetic copy cat.

What's the derivative? Why do I need that?

>What's the derivative? Why do I need that?
It is one of the most important concepts in mathematics and one of the central topics of analysis.
In simple terms it is the slope of a function at a given point.

It is used in nearly every field from economics to engineering.