Author Topic: Math program  (Read 7056 times)

0 Members and 2 Guests are viewing this topic.

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Math program
« on: December 03, 2009, 01:57:02 pm »
I don't know if this post belongs here, but anyway, I am making a math program.
Anyone taking AP Calculus AB right now?
I am learning about Derivatives (which pretty much is what AP calculus is about)
So I wanted to program on TI 84 that if I input the function (even with trig functions) the program will give me the derivative.

I am very far into it. the program gives me the derivative as long as there's one function and doesn't have trig function in it.
But the problem is that I have no idea how im going to do with trig function.
Also, it is still buggy with the roots sign.

And it doesn't yet know how to combine like terms.

I will upload it as soon as I can~


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Tizona

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: Math program
« Reply #1 on: December 03, 2009, 04:22:27 pm »
There already is such a program for the ti 84, does exactly what you are saying. its somewhere on ticalc,  i just haven't looked at the 84 section in a while. anyway, i am in AP Calc and derivatives with trig really arent that hard.
d/dx(sin(x))=cos(x)
d/dx(cos(x))=-sin(x)
d/dx(tan(x))=sec^(x)
d/dx(cot(x))=-csc^2(x)
d/dx(sec(x)=sec(x)*tan(x)
d/dx(csc(x))=-csc(x)*cot(x)
I take it you have already programed in product, quotient and chain rules? if not, id start with those before worrying about trig. it would also be cool if this program could do integrals. as for combining like terms? i have no idea.

ok, here is that 84 app.
http://www.ticalc.org/archives/files/fileinfo/278/27805.html
« Last Edit: December 03, 2009, 04:36:52 pm by Tizona »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Math program
« Reply #2 on: December 03, 2009, 05:09:14 pm »
What are maths?

EDIT: OH WAIT! I remember now, I used to do these a lot several years ago

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Math program
« Reply #3 on: December 03, 2009, 10:34:30 pm »
Yeah, i wanted to program that in BASIC... and mine will show the steps in solving that.
Our teacher will destroy our grade with just one word: "HOW?" if we don't put the steps in.
I am trying to do the product and quotient, but don't know what chain is... haven't learned that yet


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Jon

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 278
  • Rating: +0/-0
    • View Profile
Re: Math program
« Reply #4 on: December 03, 2009, 11:22:57 pm »
it would also be cool if this program could do integrals.


Hats off to you if you can make a program that will find antiderivatives.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Math program
« Reply #5 on: December 03, 2009, 11:24:44 pm »
Indeed, that is something that even modern day math programs can't do completely ^^,

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Math program
« Reply #6 on: December 04, 2009, 10:07:21 am »
i don't know what antiderivative is...
and i am learning chain rule today~

I am going to halt this thing for a while, and make it after i learn more about derivative


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Math program
« Reply #7 on: December 06, 2009, 12:33:53 pm »
What are maths?

EDIT: OH WAIT! I remember now, I used to do these a lot several years ago
Math programs was what made me enter the community...


I should have released my math programs by now...
« Last Edit: December 06, 2009, 12:34:18 pm by Galandros »
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Math program
« Reply #8 on: December 06, 2009, 01:22:24 pm »
I was kidding :P

I kinda said that because I finished hi school several years ago and on Omnimaga, there are rarely any maths question since the entire forum is pretty much devoted to games

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Math program
« Reply #9 on: December 06, 2009, 04:26:44 pm »
Math is originaly what got me into programing, since i didn't know how to use getKey for the longest time.  I once built a program to solve triangles, everybody wanted it :) But yeah, math programs are awesome!  After every math test i have at least 2 or 3 programs that i wrote during the test to help me out XD

and Wewt! 500th post!

Offline megajake03

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +1/-1
  • Luigi Rules!!
    • View Profile
Re: Math program
« Reply #10 on: December 06, 2009, 04:40:30 pm »
ya math programs are very usefull because then you don't have to memorize the formulas you mearly have to remember what the program solves such as a sequence total(how much it adds up to) solver i created friday
« Last Edit: December 06, 2009, 04:41:39 pm by megajake03 »
What is crazy?..............................Me!
And Luigi rules!!!

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Math program
« Reply #11 on: December 06, 2009, 05:08:16 pm »
ya math programs are very usefull because then you don't have to memorize the formulas you mearly have to remember what the program solves such as a sequence total(how much it adds up to) solver i created friday
I memorize almost all formulas because of the many times I use them.

What I found really cool is using lists in calculating stuff in statistics and sometimes probability with combinations.
« Last Edit: December 06, 2009, 05:08:43 pm by Galandros »
Hobbing in calculator projects.

Offline megajake03

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +1/-1
  • Luigi Rules!!
    • View Profile
Re: Math program
« Reply #12 on: December 06, 2009, 05:22:30 pm »
Ya not exactly my favorite things to do :P
What is crazy?..............................Me!
And Luigi rules!!!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Math program
« Reply #13 on: December 06, 2009, 09:29:47 pm »
The whole first year that I programed, I just programmed math programs.  I've only been programing games for about a year now.
I remember my great Slope program.  You had to put in any four of X1, Y1, X2, Y2, and M and it would give you the other one. :) Simple, but it sure was great. :)

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: Math program
« Reply #14 on: December 06, 2009, 10:22:32 pm »
I was kidding :P

I kinda said that because I finished hi school several years ago and on Omnimaga, there are rarely any maths question since the entire forum is pretty much devoted to games

That's why i asked if this post belongs here, since i knew that omnimaga is dedicated to calc games and music. And I had a lot of math programs to help, and my favorite one was solving the systems of equation with matrix, with steps showing.


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*