Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Math Resources > Mathematics Software Discussion
Reply
 
Thread Tools Display Modes
  #1  
Old September 1st, 2009, 09:00 PM
Newbie
 
Join Date: Aug 2009
Posts: 2
Country:
Thanks: 0
Thanked 0 Times in 0 Posts
toki is on a distinguished road
Default vb calculation formula problem

my problems goes like this:

1. Input the value of T:3
Input the value of S: 6

Then when i click the compute button the formula will compute like this

T^S - [T(T-1)^S] + [T(T-2)^S] = A(answer)

for example if i input T=3 and S=6 the computation will goes like this...

3^6 - [3 (2)^6 ] + [3 (1)^6] =
729 - 192 + 3 = 540

^ = raised to the power

problem: a.) how can i decrement the value of T depending on the values i input
b.) how can i make an alternate conditional statement of the - and + operation.. because the formula will be
using an alternate operation - + - + and so on...

visual basic please thnx

hope someone can help me thank u very much
Reply With Quote
Advertisement
 
  #2  
Old September 9th, 2009, 11:48 PM
Pim Pim is offline
Junior Member
 
Join Date: Dec 2008
Posts: 26
Country:
Thanks: 0
Thanked 11 Times in 10 Posts
Pim is on a distinguished road
Default

I don't understand your first question, but your second can be solved like this:

Code:
 
For i = c1 To c2 Step 2
var1 += ....
var1 -= ....
Next i
where i is a looping variable, which you can use in calculating var1. c1 and c2 are constants and var1 is a variable.

Hope this helped.
Reply With Quote
  #3  
Old September 30th, 2009, 12:38 AM
Newbie
 
Join Date: Sep 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
crypt0s is on a distinguished road
Default

um, PM me and tomorrow I can help you more. I saw this as I was getting ready for bed and I can give you the VB you need.

first: I assume your using the dev environment right? so your making this into a form?
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 07:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.