home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,044 of 2,978   
   William J. Leary Jr. to All   
   Re: Calculate the string statement   
   11 Feb 06 11:31:44   
   
   From: Bill_Leary@msn.com   
      
   "Yaser"  wrote in message   
   news:1139635949.125341.196610@o13g2000cwo.googlegroups.com...   
   > Hi...   
   > I want to program a scientific calculator with tp but i have a problem.   
   > Problem:   
   > we have a statement included math symbols   
   > e.g.(-,+,(,),/,!,^,*,Log,Sin,Cos,Tg   
   > and numbers),the statement as string in tp,how i can calculate this   
   > statement?   
   > i review the stack type but i can't use this effectivly.thanks!   
      
   I'm not sure what you mean by "stack type."   
      
   I have an expression processor written in TP5.5 which you might be able to use   
   as a starting point.   
      
   It does ( ) + - (including unary -) / * already.   
      
   It also does expression with dice (since it was written for a role playing game   
   manager).  You might find it possible to hook the dice expression processor in   
   to handle you Log, Sin and so forth.   
      
   If you're interested, e-mail me directly and I'll send you a copy.   
      
       - Bill   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca