Questions tagged [equation-solving]

763 questions
-3
votes
1 answer

MATLAB Convert a matrix of unknown size to a system of equations?

I have a square matrix of coefficients f, and would like to be able to solve these algebraically as a system of simultaneous equations (all the equations f[i,1] + f[i,2]x + ... + f[i, n]z = T for the same T)- the problem is that I don't know how…
Uzai
  • 121
  • 2
-3
votes
1 answer

How to solve equations with 3 variables?

I have these 2 equations, found after a bunch of regression analyses studying the relation between the final value and a, b, and c individually. How do I solve them to find the values for a, b, and c? 0.76 = 25a * 15.25b * 11500c 0.70 = 26a * 13b *…
-3
votes
1 answer

Java Math Equation

seems like I just have trouble getting the equation written down but im dealing with this question : Write a program that prompts the user to enter the side of a hexagon and displays its area. The formula for computing the area of a hexagon…
Moiz Khan
  • 29
  • 2
-3
votes
1 answer

def model_func(t, a, b, c):

I am fitting a function to a power law by using def model_func(t, a, b, c): return a * np.exp(-b * t) + c opt_parms, parm_cov = sp.optimize.curve_fit(model_func, x1, y1, maxfev=1000) …
-4
votes
1 answer

How to parse and solve equation string in Java?

I have a string like 3x^2+5X+7 and what I want to do is, get x value from the user and make the program solve this equation. I couldn't figure it out how I am gonna do this so far. I would be really glad if you help me.
-4
votes
2 answers

Solving Equations in Perl

How should I solve my equations in Perl? I know binary search is one solution (and perhaps pretty fast for my equations) but I would like to know if there is a ready to use solutions such as math packages or libraries so that I can use them instead…
Ali Abbasinasab
  • 382
  • 3
  • 13
-5
votes
2 answers

Fast way to calculate solution of a triangular equation c++

What is the fastest way of calculation x in below equation in c++? sin (a x) + b sin (c x)== d * x + e I don't need a very exact value of x. the approximation with 0.001 is acceptable. I also know an interwal for the solution [x_0,x_1]. I know…
-5
votes
1 answer

How to random more than one math problems' operators and check the correct answer in java

import java.io.*; public class AssignmentMT { public static void main(String[] args) throws IOException{ // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int number1, number2,…
Shirley
  • 3
  • 2
-5
votes
1 answer

Lotto breaker program whats the equation

I was curious as to what it would take to mathematically solve lotto. Just For Fun. So I decided to find out exactly how many tickets I would need to buy, if I wanted to win the next Week's Lotto. MY GOAL IS TO CREATE EVERY SINGLE TICKET POSSIBLE I…
BrianBeaven
  • 173
  • 1
  • 2
  • 11
-6
votes
2 answers

Solve a simultaneous equation with product of the 2 variables in Python?

If i have 2 equations: x = ab and n = a+b where x and n are known, and a and b are large whole numbers, how can I solve them using Python?
Ananay Gupta
  • 355
  • 3
  • 14
-6
votes
2 answers

how to split the certain range

I need to split range from main range. For example var start = 0; var end = 100; var ranges = [ { start: 25, end: 50 }, { start: 60, end: 70 } ] my expected output is, { start: 0, end: 24}, { start: 51, end: 59}, { start: 71, end: 100} how to…
Akbar Basha
  • 1,168
  • 1
  • 16
  • 38
-6
votes
1 answer

find a solution to Kepler's equation (iOS) (swift)

I am writing codes to find a solution (E) to Kepler's equation: E - e*sin(E) = M and all angles are expressed in radians, M = 3.52821, e = 0.016714 and theses are the steps: First guess, put E = Eo = M Find the value of O = E - e*sin(E) - M If |O|…
1 2 3
50
51