Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,206,677 members, 7,996,441 topics. Date: Thursday, 07 November 2024 at 10:02 AM |
Nairaland Forum / Science/Technology / Programming / Code To Calculate Formula (2273 Views)
Can Someone Explain This Line Of Code To Me / How To Calculate Check Digit Manually Using Modulus Calculation. / Code To Check Phone Number (2) (3) (4)
Code To Calculate Formula by Jenifa123: 9:20pm On Nov 21, 2018 |
Good evening house... I was wondering if there was a way to calculate the formula below using php or javascript... If there's a way can d person help with the code?
|
Re: Code To Calculate Formula by airsaylongcon: 9:34pm On Nov 21, 2018 |
What formula is it? Will you be providing the actual values for the variables? |
Re: Code To Calculate Formula by Jenifa123: 9:41pm On Nov 21, 2018 |
airsaylongcon:Yes I will be providing values for d variables |
Re: Code To Calculate Formula by etoluw: 6:06am On Nov 22, 2018 |
Jenifa123: it is better to use javascript (it will be faster) contact me i will help you write d code |
Re: Code To Calculate Formula by agwaisrael(m): 10:18am On Nov 22, 2018 |
etoluw: Hello Bros, this is not true. JavaScript does not perform better than php for computationally expensive tasks such as this. At least, check your facts. Try it yourself |
Re: Code To Calculate Formula by etoluw: 12:04pm On Nov 22, 2018 |
agwaisrael:yes that is true but you have to take into consideration the time it takes to go to the server and return |
Re: Code To Calculate Formula by agwaisrael(m): 1:59pm On Nov 22, 2018 |
etoluw:Php can also run as a client without using any server. Php is like python. You can use both as server scripts or to create cli apps + more |
Re: Code To Calculate Formula by Jenifa123: 8:08pm On Nov 22, 2018 |
etoluw: agwaisrael:Can I just see some codes |
Re: Code To Calculate Formula by Hibrahym: 8:30pm On Nov 22, 2018 |
Have you heard of Rosetta Code: http://www.rosettacode.org/wiki/Rosetta_Code ? Try the code yourself, then let people help you in correcting it and making it better 1 Like 1 Share |
Re: Code To Calculate Formula by agwaisrael(m): 9:53am On Nov 23, 2018 |
Jenifa123: Unfortunately, I am not ashamed to say that I do not understand what the functions of those symbols are. If you could explain that equation, mathematically or in English, even you might be able to write code in even the most unusual programming languages |
Re: Code To Calculate Formula by sparkle6(m): 7:59pm On Nov 23, 2018 |
Jenifa123:What is pr there? Permutation? What type of formula is that? The formular just dissolve my soul. |
Re: Code To Calculate Formula by Jenifa123: 9:05pm On Nov 23, 2018 |
sparkle6:It's a formula used in petroleum engineering |
Re: Code To Calculate Formula by Collinsanele: 11:16pm On Nov 23, 2018 |
I can write it in Python. |
Re: Code To Calculate Formula by Nobody: 11:20pm On Nov 23, 2018 |
Collinsanele:Just what I was about to say. Python is the best language for such operations, and it can be embedded in HTML. 1 Like |
Re: Code To Calculate Formula by Jenifa123: 7:39pm On Nov 24, 2018 |
Collinsanele:Can I see it please |
Re: Code To Calculate Formula by airsaylongcon: 9:23pm On Nov 24, 2018 |
GOR Gas-Oil Ratio? WOR Water-Oil Ratio? I know you'd really like to see codes. I'm an old school programmer Pascal and C++. I'm not very sure how variables are passed to functions in these new school Programming languages |
Re: Code To Calculate Formula by etoluw: 7:57am On Nov 25, 2018 |
Re: Code To Calculate Formula by Jenifa123: 9:22pm On Nov 26, 2018 |
etoluw:Can I see the codes u use in achieving it? |
Re: Code To Calculate Formula by YorubaEmir: 9:47pm On Nov 26, 2018 |
Once you know your BODMAS and you declare variables correctly, the code becomes easy |
Re: Code To Calculate Formula by etoluw: 6:54am On Nov 27, 2018 |
Jenifa123:you just have to view the source |
Re: Code To Calculate Formula by Jenifa123: 1:26pm On Nov 27, 2018 |
etoluw:What of the back-end? |
Re: Code To Calculate Formula by etoluw: 1:40pm On Nov 27, 2018 |
Jenifa123: i used javascript only you do not need any backend script for such things unless you intend to store the result. |
Re: Code To Calculate Formula by Jenifa123: 3:02pm On Nov 27, 2018 |
etoluw:Emmm I do intend to sha |
Re: Code To Calculate Formula by etoluw: 8:20am On Nov 28, 2018 |
Jenifa123:in that case you will need back end support i can write php script that will do that for you i can also help you integrate that service into a wordpress site. |
Re: Code To Calculate Formula by Jenifa123: 8:31am On Nov 28, 2018 |
etoluw:Would love to have the script |
Re: Code To Calculate Formula by Nobody: 9:38am On Nov 28, 2018 |
what the guy did is correct. just set the variables and rewrite the script in php. res=Jv*(prv-((17.6* Math.pow((GORv/( 1 + WORv* Bwv/Bov)), 0.51 ) *qLv/Math.pow(Sv,1.98))+(pv+Kv/pv)*Lv/144)); result.innerHTML = "result is " + res; |
Re: Code To Calculate Formula by etoluw: 7:13pm On Nov 28, 2018 |
Jenifa123: send me a measage on sunday i will help you write php script for backend |
Re: Code To Calculate Formula by etoluw: 7:13pm On Nov 28, 2018 |
Jenifa123: send me a measage on sunday i will help you write php script for backend |
Re: Code To Calculate Formula by Jenifa123: 8:13pm On Nov 28, 2018 |
etoluw:Thank you |
Re: Code To Calculate Formula by vickers95(m): 10:34pm On Nov 28, 2018 |
. |
Re: Code To Calculate Formula by kensmoney(m): 7:47pm On Nov 30, 2018 |
Nice one , I notice DAT when some of the input field are empty, when u click on calculate, it will display NaN, is there any way to handle dis? Because one of my application DAT I developed with js giv d same error. Plz |
Re: Code To Calculate Formula by Nobody: 10:20pm On Nov 30, 2018 |
kensmoney:lol yes validate the form to check and ensure no field is submitted empty. also apply filters to ensure the correct data is supplied before the form can be submitted. |
(1) (Reply)
If You’ve Done Comptia Security+ / Is PHP A Must In Nigeria Tech Industry? / 2021: Picking Up A New Skill Through Amazon ( AWS )
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 27 |