# Ultra Easy Question about C

Page 1 of 1

## 2 Replies - 515 Views - Last Post: 08 March 2010 - 01:11 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=160622&amp;s=0505fb6022360f12eadcbe86d07ee6a2&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 ninjawesome222

Reputation: 1
• Posts: 106
• Joined: 27-January 10

# Ultra Easy Question about C

Posted 08 March 2010 - 10:59 AM

hey guys...today in my calculus class, we learned how to use maple 10. We were differentiating equations (i.e. y = cosx ---> y' = -sinx). I just wanted to know if there was a function in c that will differentiate a user input equation. For example, if I typed in cos(x), the program would return -sin(x) or if typed 3*x*x (3x^2), it would return 6*x (or 6x). Note, this is not a homework assignment...I'm just curious.

This is just a simple yes or no question. All i want to know is if there is a function that will automatically differentiate (using math.h or some other library).

Is This A Good Question/Topic? 0

## Replies To: Ultra Easy Question about C

### #2 brds

Reputation: 76
• Posts: 515
• Joined: 22-October 08

## Re: Ultra Easy Question about C

Posted 08 March 2010 - 11:18 AM

No, not in the standard library. You would have to find a custom library or write your own.

### #3 eker676

• Software Engineer

Reputation: 378
• Posts: 1,833
• Joined: 18-April 09

## Re: Ultra Easy Question about C

Posted 08 March 2010 - 01:11 PM

There is a program that you can get for you calculator to do this:
http://www.ticalc.or.../386/38682.html

I have that on my calculator and it is priceless.