Author Topic: Hal and Mathematical Equations.  (Read 4133 times)

Spitfire2600

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
Hal and Mathematical Equations.
« on: March 04, 2009, 03:46:55 pm »
Is there a way to create a plug in for Hal to solve Mathematical Equations such as

2/3(2x-4)=1/2(x+3)-4    
X=1/5

For example. Maybe Hal would follow the rules of Algebra and strategically solve the equation or expression. I understand this type of solution would require most likely a massive scripting code, however, I'm sure it's possible.

Any good programmers want to give it a shot? =D
« Last Edit: March 04, 2009, 03:48:53 pm by Spitfire2600 »
 

One

  • Hero Member
  • *****
  • Posts: 2184
  • Technology Advocate
    • View Profile
Hal and Mathematical Equations.
« Reply #1 on: March 05, 2009, 01:50:42 am »
Spitfire2600
Pretty good but no cigar! I think IT would already know that equation and it wouldn't take that much time for an individual to program that but if the workload were 1 Fifth of that it would go faster.[?]
Today Is Yesterdays Future.

Carl2

  • Hero Member
  • *****
  • Posts: 1220
    • View Profile
Hal and Mathematical Equations.
« Reply #2 on: March 05, 2009, 08:19:02 am »
Spitfire2600,
  There is some deductive scripting in the brain that should be able to handle that and Hal should be able to solve the equation.  I tried a simpler equation involving x and supplied the value of x. Couldn't get it to work for me.
Carl2
 

One

  • Hero Member
  • *****
  • Posts: 2184
  • Technology Advocate
    • View Profile
Hal and Mathematical Equations.
« Reply #3 on: March 05, 2009, 11:08:49 am »
With an 'X' their is four sides each has 2 flat surface and an inside and outside corner if you put a ceiling on it then when working with 3 dimensional mediums the X needs to constantly be prepared for the next use because of the build-up on the ceiling corner. IMO i would not put a ceiling on because of the extra work.
An H would suffice as well but not as evenly distributed SQ' wise.
« Last Edit: March 05, 2009, 12:34:05 pm by One »
Today Is Yesterdays Future.

Spitfire2600

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
Hal and Mathematical Equations.
« Reply #4 on: March 13, 2009, 09:46:26 pm »
I know he solves equations given the value of X, I guess more specifically what I mean to ask is... Solve for X. or any variable.

?

 

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
Hal and Mathematical Equations.
« Reply #5 on: March 14, 2009, 01:05:48 am »
I knew that Hal could do basic math functions but I did not know that it could do algebraic functions. If this is the case then try spacing out the equasion a littl more and see if that helps.
Bill