Author Topic: Symbolic Expressions  (Read 3800 times)

0 Members and 1 Guest are viewing this topic.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Symbolic Expressions
« on: March 31, 2011, 05:19:24 pm »
I have a series of Basic programs that I made on my calc that allow me to (sort of) deal with symbolic expressions. Here's what I have so far:
Polynomial mult/divide
Fraction rationalization
Prettyprint auto-simplified quadratic solver
Root simplifier (sqrt(20) becomes 2sqrt(5), but it works for any root)
A prog that finds all rational roots of a number (and their powers)
And a bunch more (I think)
Anything else I should make?
« Last Edit: March 31, 2011, 08:45:13 pm by squidgetx »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: Sybolic Expressions
« Reply #1 on: March 31, 2011, 05:31:48 pm »
Complex polynomial roots ftw! :D
There's something about Tuesday...


Pushpins 'n' stuff...


Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Sybolic Expressions
« Reply #2 on: March 31, 2011, 05:32:47 pm »
Indefinite derivation/integration. ;D

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Sybolic Expressions
« Reply #3 on: March 31, 2011, 05:53:46 pm »
Problem with ndegree poly solvers is that above quartics, not all of them are solvable. I can't even find the equations to solve a quartic. In a similar vein, if I remember correcly, indefinite integrals only work for specific kinds of functions, and the math changes with each kind.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline phenomist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 132
  • Rating: +46/-3
    • View Profile
Re: Sybolic Expressions
« Reply #4 on: March 31, 2011, 06:34:53 pm »
Yeah, some indefinite integrals for elementary functions output nonelementary functions.

Though for a n-degree solver, perhaps use the Newton method for approximating all the roots, complex and noncomplex? :D (for n>4)
« Last Edit: March 31, 2011, 06:35:16 pm by phenomist »
Level Designer for Graviter

[Disclaimer: I can't program for my life.]

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Sybolic Expressions
« Reply #5 on: March 31, 2011, 07:37:55 pm »
Problem is, this has to be able to do complex coefficents, otherwise there's no point. (There's an App for that)
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline phenomist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 132
  • Rating: +46/-3
    • View Profile
Re: Sybolic Expressions
« Reply #6 on: March 31, 2011, 07:57:02 pm »
I would imagine that the process is similar, because the derivative of a polynomial is easy to compute, regardless of the coefficients.
Level Designer for Graviter

[Disclaimer: I can't program for my life.]

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Sybolic Expressions
« Reply #7 on: March 31, 2011, 07:59:42 pm »
Indefinite derivation/integration. ;D
I would love that!  Actually, you could do that.  I might write if for KOS if we ever get a dev version, and it allows stuff to be added in like that.