Questions tagged [equation-solving]

763 questions
-1
votes
1 answer

Solving symbolic equation in matlab

I am trying to solve a symbolic equation of the form D = lamda^12/339288145381785600000 + lamda^10/18124366740480000 + lamda^8/7846046208000 + lamda^6/523908000 + lamda^4/25200 where lamda is declared as sym. The output I get is not in a…
-1
votes
2 answers

Calculate variable based on remainder

How do I use JavaScript to calculate the x value in this formula? (x * y) % z = 1 y and z are known integers. For example, y = 7, z = 20. 3 multiplied by 7 results into 21, that divided by 20 results into remainder of 1. Solution x = 3. (3 * 7) %…
MikkoP
  • 4,864
  • 16
  • 58
  • 106
-2
votes
2 answers

How to find shortest path in both directions of a number with over wrapping?

Let's say I have to pick a number from 0-10. The number I pick is 6. The next number I want to pick is 0. Now the rules are I have to keep incrementing the number by 1 or decrementing it by 1, the number can also wrap around the last number. Now…
SSpoke
  • 5,656
  • 10
  • 72
  • 124
-2
votes
1 answer

How to call exe on server from javascript?

Javascript is inaccurate, but I need a very precise answers to a quartic equation. I want to slove it with c++, that i compiled into an exe file and will update the answers in a javascript file that I include in the HTML. I need to run the exe file…
-2
votes
1 answer

How can I get a KxK matrix in matlab?

In my assignment my lecturer wants me to write an equation solver in matlab but I need to get an input . Input will be the K in KxK matrix and I need to get K time(s) multiple of unknown. Let me know if there is an spesific operator for this.I…
-2
votes
1 answer

Find analytic solution to this system of quadratic equations

I have reduced my problem to this system of 3 quadratic equations: (k1*x + k2*y + k4)^2 = k7 (k2*y + k3*z + k5)^2 = k8 (k3*z + k1*x + k6)^2 = k9 (Solve for x, y, z, k1..k9 are constants) I have spent quite some time not finding…
Peter Pohl
  • 17
  • 1
-2
votes
1 answer

Solving n linear systems efficiently

I have n (very large) independent linear systems (Ax = b_i). They all have the same A, but b_i is different for (i = 1, ..., n). I want to solve these n systems in parallel in CUDA. I was thinking that it might be most efficient to do the LU…
-2
votes
4 answers

How to solve an equation for 4 variables

Say I have a + 3b + 4c +2d =40; how can I solve a,b,c and d. I'm not sure where to start, I am coding this using c language. I know that one solution is a=9 b=3 c=2 d=7. I forgot to add that the domain for a,b,c,d is 0-29 inclusive.
mintxo
  • 7
  • 3
-2
votes
2 answers

Solve for value without using Solver

I currently have the following in excel for other users. The Number column does not change. Users will input values in Multiplier 1 and Multiplier 2 columns and they will get a value in Outcome column. Is there an automatically way where the user…
-2
votes
1 answer

Finding parameter of a parametric quadratic equation

Question: i'd like to write a little c program that finds parameter of a parametric quadratic equation like: (k+2)x²+(k-2)x+k-2=0 If i want to find k for x1=-x2, how can i do? Is there a way to convert inserted string to mathematical operations(if i…
Saverio
  • 1
  • 1
-2
votes
2 answers

Solving simple linear function in R

I have two simple equations. 46.85 = r/k 8646.709 = r/(k^2) I am trying to solve for r and k and I tried setting up my equations as follows model <- function(r,k) { c(46.85 = r/k, 8646.709 = r/(k^2))} ss <-…
Science11
  • 788
  • 1
  • 8
  • 24
-2
votes
1 answer

I keep getting zero from my equations and do not know why

Here is my full code. I keep getting zero for my equations no matter what i do. Any help would be greatly appreciated. #include #include #include int main(void) { int x, y; float a,t; //Inputs printf("What is the…
-2
votes
1 answer

How to find point of intersection of two line segments in Python?

I have data with one independent variable x and two dependent variables y1 and y2 as shown below: x y1 y2 -1.5 16.25 1.02 -1.25 17 1.03 -1 15 1.03 -0.75 9 1.09 -0.5 5.9 1.15 -0.25 5.2 1.17 0 …
sfactor
  • 12,592
  • 32
  • 102
  • 152
-2
votes
1 answer

How to find all A s and B s such that AB=constant

I have two numbers a and b such that a*a*b=constant. How can I find all as and bs which satisfies this equation? Can I have a graph for example for a versus b? Actually, I am looking for a relationship between a and b, as an example an equation for…
shaloo shaloo
  • 213
  • 1
  • 2
  • 9
-2
votes
1 answer

Is there any Good library for solving differentiation equations using differentiation operator?

Good library for solving differentiation equations (not only 1rst order) using differentiation operator?Better written in C/C++/PHP/C#/Actionscript/Javascript
Rella
  • 65,003
  • 109
  • 363
  • 636