Go to Post Like many researchers before me, I look and read about what my peers are doing and developing, and then incorperate the best of them into my ideas or change my focus because of them. - Wetzel [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 10-11-2005, 15:06
Issues Issues is offline
Registered User
FRC #0525
 
Join Date: Nov 2005
Location: Iowa
Posts: 11
Issues is on a distinguished road
Analyzing an expression?

This isn't related to FIRST, but is a matter of programming. I am trying to make a program that will take in information about multiple vectors and then take in an expression with both scalar and vector math and evaluate it. I was wondering what is the best approach for this. Lets say they have to enter in a string containing
(a,b,c,d,e,f)- letters representing vectors
(+,-,/,*,x) - operators
numbers and parenthesis

so like this (3a+4b)xc

what is the best way to evaluate the expression. The approach I am using uses like a million if statements and it is very hard to read =\ and slowwww. So, how does maple do it?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Individual bits in C Noah Programming 7 08-01-2004 15:53


All times are GMT -5. The time now is 00:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi