CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Circular Reference Calculation topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2010, 12:33 AM
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Piya27 is on a distinguished road
| More
Circular Reference Calculation

Hi All,

I am quite stuck in an operation where I have to calculate a sum using circular reference.
Though in Excel , it's quite easy (or already managed by excel itself) to use circular reference but I am not sure how to implement this thing in C#.
The problem is like this:
I have to sum a whole range of cells and then two values in cells use the sum itself for their own calculation.that is,
if i have sum = num1 + num2 + num3 + num4,
then num2 = someVariable + sum/someVariable2;
and similarly num4 also uses sum in its value.
To start with I guess I should take sum = 0 and then calculate num2 and num4, that will give me a new sum that further can give me new value for two variables and finally I can get final sum.
But I am quite confused whether this approach is correct or not.

Please suggest!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculation Problem inspiration C Programming 12 06-20-2010 09:54 PM
query about reference kishore C++ Programming 3 06-29-2008 09:31 AM
Some good article on reference kishore C Programming 1 05-27-2008 04:03 AM
#1 Tutorial/Reference for GDI+ using C++ MartijnMulder C++ Programming 2 09-03-2007 09:27 PM
how to know reference count of of a com component ? mangesh_sawant MFC Programming 0 09-30-2006 07:07 PM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:10 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board