formula

Looking for interesting formula

I'm creating a game where players can make an alloy. To make it less predictable and more interesting, I thought that the durability and hardness of an alloy should not be calculated by a simple formula, because it will be extremely easy to find extrema, where alloy have best statistics. So the questions is, is there any formula for a f...

How to refer to enum values inside nhibernate formula mapping specification?

Dear ladies and sirs. I have two entities types: RunContainer parent entity type Run child entity type Run has a property Status, which is of type RunStatus, like so: public enum RunStatus { Created, Starting, // ... } public class Run { public int ContainerId { get; private set; } // ... public RunStatus Status { get...

Excel formula to show linked cell ID

In an excel cell, I've placed a simple formula =C4 The cell typically displays the value of cell C4, but instead I want to see the linked cell ID instead, which in this case is "C4". Is there a formula to show me this? like: =SHOWCELL(C4) The reason I need this instead of simply typing the value of "C4" into the cell, is so Excel ...

What is the proof of of (N–1) + (N–2) + (N–3) + ... + 1= N*(N–1)/2

Hello, I got this formula from a data structure book in the bubble sort algorithm. I know that we are (n-1) * (n times), but why the division by 2? Can anyone please explain this to me or give the detailed proof for it. Thank you ...

sharepoint: conditional formula for calculated field

hi all, i want to create a formula for change my value from EUR into USD. FIELD1 (choice): EUR, USD FIELD2 (number): amount in EUR or USD Now, if USD is selected in FIELD1 following should happen: calaculate FIELD2*0,71 otherwiese the result is FIELD2. FIELD3 (calculated): =IF(FIELD1="USD", (FIELD2*0,71), FIELD2)) When I use thi...

Excel formula for variable fields

I am looking for a simple formula to do the calculation on two fields that are variable, for e.g., c1 has 100 and c3 has 150 and I want to calculate an increase/decrease percentage, but the trick is the cell values change every month. How do I put the formula to cater for such variation. Appreciate your help. Regards ...

Java apache poi setting the cell formula

I am try to set a cell formulat that references cells from other workbooks. However, when I open the programmatically generated workbook, the formula cells show up as #REF!. I print out the formulas that were generated in a log. If I cut and paste those into the cells, the numbers from the external workbooks is pulled in. Str...

JExcel doesn't copy Array formula

I open excel file by JExcel, modify some cells and save it. As result Array formulas({ ... } CTRL+SHIFT+ENTER) was broken. Does anybody know what to do? (FormulaException is rasing during copy) ...

Actionscript: How to show Mathematics formula in Flash Textbox?

How can I write mathematics formula in actionscipt2.0? As following: Thanks all! ...

Can't Set Crystal Report Selection Formula Programatically

Hello all, first, I can't stand Crystal! Okay, that's off my chest... Now, we have an old VB6 app we maintain for a client, which uses the Crystal Automation library to programatically change the record selection formulas in a bunch of Crystal Reports 8.5 reports. There are two reports which are ALMOST identical. I had to change them...

Apply .Formula Property in SpreadHeader - FarPoint - SpreadSheet ver 7.0

In FarPoint SpreadSheet ver 7 - How to apply .Formula property at SpreadHeader+1 ? .That is second Header of the Spread. We can apply .Formula property at SpreadHeader + 0.That is Top Header. I use the following code, With fpSpread1 .Row = SpreadHeader + 0 .col = 1 .CellType = CellTypeNumber .Formula = "SUM(A1:A10)" End Wi...

Crystal Reports Check if export in formula

Hi, I want to add some text (from a formula) to my crystal report. the thing is: I want this text only to be visible if I export the report to HTML for instance. I don't want to see the text if I print the report. Can it be done? bye Juergen ...

Excel Question: I need a date and time formula to convert between time zones

Hello, I am trying to find a way to calculate a duration in days between my, time zone (Central), and (Pacific; Mountain; Eastern). Just do not know where to start. My criteria would be as follows: Cell C5:C100 would be the timestamps in this format:3/18/2010 23:45 but for different dates and times. Cell D5:D100 would be the correspo...

NHibernate - I have many, but I only want one!

Hello, I have a User which can have many Emails. This is mapped through a List collection (exposed by IEnumerable Emails on the User). For each User one of the Emails will be the Primary one ("Boolean IsPrimary" property on Email). How can I get the primary Email from User without NHibernate loads every email for the User ? I have the...

Getting Corresponding Cell In Google Docs Spreadsheet?

I have a Google Docs spreadsheet for tracking my weight. I have two columns: Date and Weight. While the goal is to have the weight column sorted in descending order, that doesn't always happen in reality... ;-) The data essentially looks like this (weights changed to far lower values, of course): Date |Weight 04/01/10|195 04/02/1...

Parse Formulae in .NET

I am trying to parse formula in C# language like "5*3 + 2" "(3*4 - 2)/5" Is it possible to do in C# or scripts like VBScript, JavaScript (which will be called in c# program). ...

Typesetting LaTeX fraction terms to be larger in an equation

I have the following formula in LaTeX, based on Fisher's Exact Test. (NOTE: requires the use of the amsmath package for \binom.) \begin{equation} P(i,j) = \sum_{x=|N(V_i) \cap V_j|}^{\min\{|V_j|, |N(V_i)|} \frac{ \binom{|V_j|}{x} \binom{|V - V_j|}{|N(V_i)| - x}} {\binom{|V|}{|N(V_i)|}} \end{equation} This renders the fract...

How can we calculate sea distances using waypoints ?

Hi Friends, I have one query in which I really stuck at that. I have port database with waypoints and also routing points which I need to use in distance calculation between two ports. I have done lots of R&D to find formula which gives me distance between two points. I also need shortest route which is possible. I have reviewed online...

Geographical destination formula

I have this PHP function, but it seems to give wrong results. Does anybody have an idea what's wrong with it (esp the formula)? /** * Finds a destination given a starting location, bearing and distance. * * @param array $startingCoordinates The starting coordinates, as non-directional floats in an array with lat and lon keys. * @pa...

Prevent Excel from evaluating unneeded expressions in OR()

IF(OR(ISNA(MATCH(8,B10:B17,0)),MATCH(8,B10:B17,0)>8),"",...BLAH...) I understand how to fix this problem by rearranging my formula. I have it the way it is to show this point. You can see the OR() statement checks to see if the first MATCH() returns NA. When it does, OR() should automatically return TRUE and not evaluate the second MAT...