calculate

Which Language Should I Use To Make An App To Calculate My Payment?

I'm paid by the hour and I want to make an app which I will start at the beginning of my shift and the features I want to include are: Timer Time Of Shift Start And End Date Of Shift Ability To Save A Full History Of When And For How Much I Worked etc. Maybe C? But will I be able to make a GUI relatively easily? BASIC is not a viab...

Memory Units, calculating sizes, help!

I am preparing for a quiz in my computer science class, but I am not sure how to find the correct answers. The questions come in 4 varieties, such as-- Assume the following system: Auxiliary memory containing 4 gigabytes, Memory block equivalent to 4 kilobytes, Word size equivalent to 4 bytes. How many words are in a block, expressed...

calucating the total of the price field in an array

( [0] => Array ( [0] => Array ( [0] => Array ( [price] => 76 ) [1] => Array ( [price] => 200 ) [2] => Array ( [price] => 500 ) [3] => Array ( [price] => 67 ) is there a clean way to calculate all these prices ...

Calculate mu/sigma on Casio cfx-9850gb plus

Hello, How do I calculate sigma/mu on my Casio CFX-9850GB PLUS when only the area and one of the borders are given? this is for normal deviation. thanks ...

Yii framework....Calculate total on fly

Hi guys, I'm newbie in Yii framework and start learning on small web project so I got stuck on this position as how to solve it. I have a 'Order_form' where a user has confirm his order and if want to change the 'Qty' so only this can change then bydoing this I need to change the Total value to be calculate on fly on same form if Qty g...

calculate entropy after several tests

Hallo, I have a function and would like to measure your entropy. For it I tested several times and have got different results (min-entropy-formula): e.g., test 1 - entropy 3.5 test 2 - entropy 8 test 3 - entropy 2.8 How can I summarise the results? Can I simply calculate the average? Thanks in advance. ...

A javascript calculating error ?

Let's see this example. <html> <body onload="alert((0.1234*300));alert((0.00005*300))"/> </html> Why the results are not as should be 37.02 and 0.015 but 37.019999999999996 and 0.015000000000000001 ? Ps: 0.00005*300 make error while 0.0005*30 and 0.005*3 are ok. ...

calculate in struts 2 tag ?

Hi. I have an iterate and i want to calculate sum of the values like this : <s:iterator value="myValues" status="myStatus"> <s:property value="value" /> </s:iterator> <s:property value="total.here" /> I want to show the sum of "value" in "total.here". Sorry for my bad english. Thank you very much. ...

Calculate median for each subject with update on ties? [R]

I have data which looks like this (this is test data for illustration): test <- matrix(c(1, 1, 1, 2, 2, 2 , 529, 528, 528, 495, 525, 510,557, 535, 313,502,474, 487 ), nr=6, dimnames=list(c(1,2,3,4,5,6),c("subject", "rt1", "rt2"))) And I need to turn it into this: test2<-matrix(c(1,1,1,2,2,2,529,528,528,495,525,510,"slow","slow","fa...

How do I calculate the magnitude of the velocity of my mouse cursor, in Python?

http://dl.dropbox.com/u/779859/speedCalc_puradata.JPG I achieved it in pure data, have a look at the schematic of what I'm thinking: Recieving Midi Control input from ctlin 20 and 21 Pipe delays whatever signal it recieves Pythagoras Viola, the speed of the input. The units don't matter, as long as it is absolute. I was thinking abo...

Android: Time calculations, how to add a specified amount of minutes

I'd like to add 15 minutes to Time Object, so that 09:46 would become 10:01. Time time = new Time(); time.hours = 9; time.minutes = 46; time.minute += 15; This doesn't work... :-/ ...

How to calculate percentage of "equal or better" in mysql DB?

Dear All, Figuring out a title for this question was hard, but the following is harder for me. I hope anyone can help. I have a simple MySQL database table. This table is filled with records containing an ID and the number of week-visitors. It has records of 2 year of about 200+ websites. To summarize, I want to be able to know two th...

Calculate width of div within viewport

Hello, I need to calculate the width of a div within the viewport. If i use .css(width) on my div, it just calculates the complete width. My current code for trying to calculate: var $Windowwidth = $(window).width(); var $lefty = $("#gallerytop"); var $GalleryTopWidth = parseInt($lefty.css('width')); $("#footer").click(function() { ...

Calculate age in JavaScript

Hello! How can I calculate age in years from a date of format YYYYMMDD to today. Is it possible using the Date() class? Thank you. EDIT: I am looking for a better solution than the one I am using now: var dob='19800810'; var year=Number(dob.substr(0,4)); var month=Number(dob.substr(4,2))-1; var day=Number(dob.substr(6,2)); var today...