Most voted "calculus" questions
Specific method of certain branches of mathematics, used in solving arithmetic or algebraic problems.
Learn more…86 questions
Sort by count of
-
18
votes4
answers3943
viewsCalculate mail freight for various products
I am trying to make the freight calculation of various products using the Webservice of the post office, but I am having doubts/difficulty to perform the calculation when I have several products. I…
-
11
votes2
answers8954
viewsCalculate distance between two points by latitude and longitude
I need to calculate the distance in kilometer(Km) between two points through their latitude and longitude. I have not found an effective way to do. The latitudes and longitudes I have are formatted…
-
5
votes2
answers31527
viewsHow to round with 2 decimal places in javascript using a specific rule?
Hello. I need to make a simulator where a student enters the grade 1, the grade 2 and he calculates the average. Note 1 is multiplied by 0,4 and Note 2 by 0,6. Notes are decimal and only the second…
-
5
votes1
answer1228
viewsCalculating Integral using R
I need to calculate this simple integral below: It is the quantile function of the standard normal, where before hand we know that, q_0.5(z) = 0, for example. That is, for each theta (percentile) it…
-
4
votes3
answers1011
viewsRead a txt file by php and mysql and viewed by each user
I am a beginner programmer in PHP, I accepted a challenge of a job and right now I am in need of a help. They send me a month-round expense report of each user in a single file (a list), in txt…
-
4
votes1
answer2735
viewsCalculate with select output
How can I make a calculation in select below? I made the sums of quantities and values, now I need to take these sums and make a balance. Would that be: qtd_type_0 - qtd_type_1 - qtd_type_2 and…
-
4
votes1
answer678
viewsBubblesort Complexity Calculation
I would like to know how I can demonstrate by induction calculation the complexity of the bubblesort algorithm, both in the best case and in the worst case. def bubble_Sort(alist): for numc in…
-
3
votes1
answer530
viewsR - How to calculate the price change from one period to another?
Hello, I would like to know how to calculate the price variation from one period to another. Example: Year | Price 2007 | 25 2008 | 30 2009 | 7 2010 | 15 ... |...|... The new column would be: Year |…
-
3
votes2
answers635
viewsWhy is this code not calculating the average correctly?
I probably have to be really bad at math today to not be able to make a simple code that calculates the average of two values... I just don’t understand what I did wrong... BTW, I hope the average…
-
3
votes1
answer88
views -
3
votes1
answer171
viewsA - How to calculate the price variation for different periods and companies?
Hello, I would like to know how to calculate the price variation from one period to another. Being several years for several companies. Example: Company | Year | Price 1 |2007 | 25 1 | 2008 | 30 1…
-
3
votes3
answers964
viewsCalculate change and display available notes with Javascript
I have a class activity to do, where I must receive from the user the amount of the purchase and the amount paid, and then display the change. So far ok, only it also asks to display in a textarea…
-
2
votes1
answer13579
viewsCalculate time difference in php
I am trying to show how many hours an employee has worked, however the ways I tried presented incorrect values. Follow the same below: This returns the difference with 3 hours and 2 minutes less:…
-
2
votes1
answer53
viewsIntegrating columns of an Array using R (Error)
This is my matrix: funcao=structure(c(-14.7690673280818, -14.5543581356252, -12.1406211639974, -10.7200919648493, -9.55507848352318, -9.20790894914246, -8.74647670464071, -8.26548763467919,…
-
2
votes1
answer247
viewsCalculation in php giving error
On my site I have the following code to calculate discounts: $valor_a_ser_calculado =$_POST['loc']; // valor original $quantos_porcento = 75/100; //isso equivale a 7% $loc = $quantos_porcento *…
-
2
votes2
answers1519
viewsChronometer + Calculation in seconds
I have the code of a chronometer and I would like your help to implement a calculation, I will try to explain as best I can. Time code: var segundo = 0 + "0"; var minuto = 0 + "0"; var hora = 0 +…
-
2
votes2
answers691
viewsExcel: Create scale with 2 known points
Hello, I have a problem - q I believe to be much more mathematical than a formula in Excel. I have a list with percentages of results and need to "scale" these values according to two known points.…
-
2
votes1
answer120
viewsCalculating rates in R
I have the following dataframe: data <- data.frame(Individuo=c("1","2","3","4","5","6"), Sexo=c(2,4,4,2,4,2),Ocupaçao=c(1,1,2,2,1,2), Raça=c("Branco","Negro","Pardo","Branco","Pardo","Branco"),…
-
2
votes1
answer96
viewsTotalize column values of an HTML table with decimal result
I need to display the total result by summing the values that contain the value column: var linha=document.getElementsByClassName("calcular"); var…
-
2
votes0
answers108
viewsDisplay derivative expression in Visual Basic
I am using the package "Extreme Optimization" to learn how to use calculus and mathematically more advanced programs using the VB language. However, I need help saving the program in memory and…
-
2
votes1
answer90
viewsHow to make a generic implementation of the Bisection method in MATLAB?
Good night, I’m having the following problem: The code developed in Matlab to calculate roots of the equation using bisection method is bugging, perhaps in the calculation process (loops); The idea…
-
2
votes1
answer37
viewsIs there a way to assign values to symbolic variables after deriving them using sympy?
Hello, I need to write a code that derives a user-informed function and then assign values to variables to perform the calculation. The problem is that it is necessary for the variables to be…
python numpy calculus ipython-notebook sympyasked 3 years, 10 months ago Leonardo Barbosa Brandão 23 -
1
votes1
answer275
viewsjQuery does not add "+"
I’m making a shopping cart with jQuery. The cart works like this: It has the products and all the values of each one. It has a field that changes the quantity. It has another field also of freight.…
-
1
votes1
answer274
viewsError multiplying decimal by integer in php
Follow the example of my code: $v_quantidade = 10; $v_preco = '3,68' ; $v_total = $v_preco * $v_quantidade; echo "$v_total"; My variable $v_quantity it brings whole number, example: 3.. 5..10..…
-
1
votes2
answers815
viewsError summing 2 php values
I have that value: 250,59 and that other value: 20,19 when we both go,: 270 Follow my calculations: $mo = $vl_mobra ; //VALOR 1 250,59 $mt = $vl_mat; //VALOR 2 20,19 $vt = $mo + $mt; //SOMA See more…
-
1
votes0
answers28
viewsJavascript Calculo Estranho
I am trying to run the following calculation in Javascript, 78.98 * 10 and the result returned is always 789.8000000000001 my question is where did this come from 0.0000000000001? I tried several…
-
1
votes0
answers76
viewsCalculate average growth percentage with PHP
I got the following json: { "bpi": { "2017-10-31": 21094.2212, "2017-11-01": 22052.8615, "2017-11-02": 22972.5023, "2017-11-03": 23730.9012, "2017-11-04": 24483.4171, "2017-11-05": 24448.8979,…
-
1
votes5
answers210
viewsVariable is not displaying the expected result
On reading the variable at the end to display the value, displays a trash, here is the statement along with my code. Make a program that receives the age, height and weight of five people, calculate…
-
1
votes1
answer2252
viewsCalculate with Javascript and return to html
So guys, I just need to get some HTML information and get back the result of the calculation, but I couldn’t. <html> <head> <title>Calculadora</title> <script…
-
1
votes1
answer613
viewsCalculation of Order for Sale jquery items
I am with a problem that I am not able to solve I have a sales order screen where it has to do the quantity calculation X unitary value = (fill in the total value and add in the total order), how do…
-
1
votes0
answers374
viewsCalculation of derivatives in Java
Hello, good day. I am here asking for a light for a problem that I have, my teacher of programming asked us to make a code that calculates the derivative of a function in java, but I am without a…
-
1
votes1
answer40
viewsHow to make an automatic grid for exact measurements using SCSS?
I have the following example but in percentage: $grid__cols: 12; @for $i from 1 through $grid__cols { .col-#{$i} { flex-basis: (100 / ($grid__cols / $i) ) * 1%; } } That may be tested here, to…
-
1
votes1
answer694
viewsDynamically calculate input with jquery
Good afternoon, I have a dynamically input input code function new_input() { $('<x>' + '<input class="cod" id="focus' + rscn +'" placeholder="Código" />' + '<input class="desc"…
-
1
votes0
answers69
viewsRepulsion method based on Helbing model
I’m developing a crowd simulator following Helbing’s Social Forces model, only I’m having a problem at the moment of the collision between agents. When the collision occurs the repulsion method is…
-
1
votes1
answer161
views -
1
votes2
answers63
viewsSQL query to identify available hourly providers
I have a table for service providers that informs the time they are not available. id_prestador | id_pedido | hora_entrada | hora_saida 1 | abc1 | 2017-08-10 10:00:00 | 2017-08-10 14:00:00 2 | xpto2…
-
1
votes3
answers331
viewsJquery calculation of centimeters with coin result
I am breaking my head to try to make the code below understand that the value of DIV should be respected the comma (Ex.: 1,20cm) in which would be: div1(in centimetres) X div2(in centimetres) =…
-
1
votes0
answers453
viewsRound decimals with PHP
I need to round decimal numbers down, except for when the decimal place is 5, for example 1.2 I want to round off to 1 and when the number is 1.5 I want to keep the value. I know only 3 functions of…
-
1
votes1
answer4081
viewsRoot and power in C#
I need to calculate the root and power according to the logic that follows.. so far ta funfando using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using…
-
1
votes1
answer623
viewsFormat summation result with comma - Jquery
I am making a sum of all the values related to a column of a table. When returning even to html, it is being returned without the comma. How can I proceed so that the comma is presented in the…
-
1
votes0
answers587
viewsHow to calculate hours per shift
I have a table in oracle with start time and end of surgeries, I need to add the hours per shift (from 6 am to 11:59 am morning, 12pm to 17:59 pm is afternoon, 18h to 23:59 pm is night and 00 is…
-
1
votes0
answers58
viewsAdd values with jquery
I have an input of type number that is a select with two different options and values, I have to add the value of my input with the value of my select but whenever I try, it reports me this error…
-
1
votes1
answer39
viewsCalculation of Ajax Dynamic Products
Good morning. I’m a novice programmer, and I’m developing a sales web app, where my system generates inputs dynamically for each product, multiplying the product price by quantity. But now I need…
-
1
votes1
answer12273
viewsHow to calculate the value of interest plots?
I need help to calculate values with Interest to simulate billet payment via Picpay According to the Picpay page, What is the fee to pay billets? Check the fees to pay bills like Picpay: To pay by…
-
1
votes1
answer46
viewsCalculate Toolbar positioning next to a rotated element
I’m kind of bad at math, but I imagine this is something based on cosine and tangent based on the hypotenuse radius. It should be considered that when the angle is 0 or 90 degrees, Toolbar should be…
-
1
votes1
answer37
viewscalculate the direction of touch (top || right || bottom || left)
To move the tail in this game https://leonardovita.github.io/javascript-snake-game/ using the touch screen of the mobile phone, need to calculate the position of the click on the screen, as in the…
-
0
votes1
answer411
viewsMake price calculation with jQuery inside PHP loop
I’m doing a shopping simulation page. I already have the product loop in PHP, now I need to calculate each product by quantity. Here the HMTL: <td width="140"><?= $produto_nome;…
-
0
votes1
answer67
viewsHelp with increasing fields with javascript
I’m developing the following Javascript retirement calculator, I’m still learning the language. http://www.utilizaweb.com.br/aposentadoria/ The calculator is already working normally the way it is…
-
0
votes1
answer1416
viewsCalculate a Python string
I would like to make a calculation of a string that I receive, for example: var = '1+2' Wanted to turn this string into an account, to return 3 to the variable var and not '1+2', but this would not…
-
0
votes1
answer157
viewsHow to calculate the value of two inputs one of type range and other option and print result in real time?
Guys, I would like to know how I can be doing a calculation, in which I would take a range value and the value of an option and print the result in real time, but even if no option is selected and…