Most voted "equations" questions
Use this tag for calculation problems/equations in programming. In mathematics, an equation is an equality involving one or more unknowns (unknown values).
Learn more…13 questions
Sort by count of
-
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…
-
7
votes1
answer126
viewsHow to change the color when drawing a line segment that belongs to a circle?
I’m trying to draw in an image 400 × 400. The first drawing is a line defined by the equation ax + by + c = 0. When to replace x and y and the result is 0 the point belongs to straight, then change…
-
6
votes1
answer1855
viewsEquation solving
I created a Cartesian plan and I get an equation from the user. My goal is to draw this equation in the plane. I’m doing this using canvas. Only here comes a problem, I can only do this if I…
-
4
votes1
answer275
viewsError in java second degree equation algorithm
Good morning, could someone help me understand why my code is not doing the correct processing and why my conditional deviation is wrong? public void cap4ex3e(){ double a,b,c,delta,x1,x2; Scanner in…
-
1
votes3
answers6982
viewsCalculate the standard deviation of a vector
I’m having trouble solving the following equation: Here is the code: #include <stdio.h> #include <math.h> int main(){ float m, media, sigma, p; int vetor[10]; media = 0; m = 0; sigma =…
-
1
votes1
answer2073
viewsHow do I make a 2°degree equation graph using Python?
I made a code that calculates Bhaskara for me and I was thinking of making this program show the graph of the equation as well, but I don’t know how to do that. if anyone knows how to do this,…
-
1
votes2
answers101
viewsThe application for when editText is not populated
Hello! I’d like to ask for your help. I’m new to Android studio and I’m trying to create an app for my physics students to calculate motion equations. One of the methods is to calculate the equation…
-
0
votes1
answer50
viewsSet the variable value as an equation
I wanted an equation to appear as a function of x and not the value of the equation, is it possible? I found nothing, and I’m starting now programming in javascript and do not know much
-
0
votes1
answer1597
viewsPlot a graph of the loading and unloading of a capacitor in MATLAB
I need to create a program that shows through Plot the loading and unloading of a capacitor as shown below: There are 3 constants where the user needs to enter the values: C = capacitance; R =…
-
0
votes0
answers74
viewsIs it possible to change a comparison of an existing variable in Matlab?
You can change/change the equality (comparison) of an existing variable in Matlab?. The variable eq of my program has as value the first highlight below. This variable is compared to 0. I want to…
-
0
votes0
answers9
viewsHow to sum an equation with index (i-1) in Gams?
Hi, guys! I’m writing a program (Linear Programming Mixed Integer) that contains equations like the following: r2a(s,d,theta).. limitesuperior(s,d-1)*y4(s,d,theta) =l= sum(f,x1(f,s,d,theta));…
-
0
votes0
answers31
viewsWrite implementation of function serie()
I am solving some programming issues, but I am struggling with this issue, if anyone can help me I will be very grateful. The question and the following. Write the implementation of the function…
-
0
votes1
answer30
viewsHow can I solve this equation in SQL? X = (A - (B+C+D+E))
I have a table with the following columns: COD_PRODUTO|PRODUTO|UNIDADE|FAMILIA|ORIGEM|ESTOQUE_ATUAL|COMPRAS_ENTRADAS|CONSUMO_PRODUCAO|ENTRADA_PRODUCAO|ESTOQUE_MIN|CMC|DIFERENÇA|PREÇO_REPOS I need to…