Questions tagged [equations]

194 questions
0
votes
3 answers

f(n), understanding the equation

I've been tasked with writing MIPS instruction code for the following formula: f(n) = 3 f(n-1) + 2 f(n-2) f(0) = 1 f(1) = 1 I'm having issues understanding what the formula actually means. From what I understand we are passing an int n to the…
melMPLS
  • 345
  • 5
  • 14
0
votes
1 answer

muParser and VC6

HI I am trying to use muParser with a legacy MFC application written in VC++6, migrating the code to a later version is not an option. Has anyone had any success using muParser in this environment. any example source code would be great.
user655261
  • 99
  • 3
  • 12
0
votes
1 answer

Finding Solutions to a Set of Equations

Suppose I have some known relations between some variables, for example a = b + c and a starting solution, e.g. a=2, b=1, c=1. I'm writing some code such that, given an update, e.g. a=3, I update the values of b and c so that the relation is still…
-1
votes
1 answer

Does any equation holds for inverse(A- B)?

is it possible to calculate inverse of A-B, i have calculated inverse of A and B already.
Maddy.Shik
  • 6,609
  • 18
  • 69
  • 98
-1
votes
1 answer

Write a C program that computes the solutions for x and y in the linear system of equations

what's wrong with my code that i can't get the values for x and y, assume that the denominator is not zero. i can't get constant values of x and y, most of the time its equal to zero. a1x + b1y = c1 a2x + b2y = c2 #include #include…
wty
  • 19
-1
votes
1 answer

Function Keeps Subtracting Instead Of Dividing

Below is the code that I have let interestone = 0.0485 let interesttwo = 0.0625 let interestthree = 0.0725 let months: Double = Double(leasingTextField.text!)! if months <= 24 { rentePercentLabel.text = String(format: "%.2f%%", 4.85) …
Julian
  • 15
  • 5
-1
votes
3 answers

how to get value of three numbers knowing three information

I am trying to solve a problem that I need to get value of three unknowns(x,y,z) knowing some info. their summation is equal to 70, x^2 + y^2 = z^2 and x < y < z. Answer should be x = 20, y = 21, z = 29 I tried to solve it as two equations in three…
-1
votes
1 answer

How to solve simultaneous equations through processing

I'm only new to processing and it's confusing me far more than Java or Javascript ever did! I have to solve simultaneous equations for a college assignment. (It's a class where they don't really explain to us what they're doing in the code.) I know…
Jessie
  • 47
  • 7
-1
votes
2 answers

Fitting y = a + exp(bt) to two points

I would like to fit y = a + exp(bt) to the points (1,1) and (2,5). So I take the natural logarithm of the equation and apply it to both points: ln(y1) = ln(a) + bt1 ln(y2) = ln(a) + bt2 With (1,1) = (t1, y1) and (2,5) = (t2, y2) so that: ln(1) =…
-1
votes
1 answer

Android unit converter... too many equations

I am creating a unit converter for Android that uses buttons (to select the type of unit) and spinners (to select the unit) but I have ran into a problem. There are too many possible equations. If you have ten units in each spinner for all the unit…
Eklassen
  • 13
  • 1
  • 6
-1
votes
1 answer

Unit tests for math equations

I need to generate unit tests for a mathematical equation such as a= (b+c)* d and boolean expressions.Is there any methodology and/or utility to achieve this?
-1
votes
2 answers

How to add a hat to a greek letter in a graph label in excel 2013

I need to add the following character in the Y-axis label of an Excel 2013 plot: the greek letter xi, with a hat ^ on top, and all that with a subscript of 1. If you are familiar with latex, I need : $\hat{\xi}_1$ I know this can be done easily in…
Crix
  • 3
  • 2
-1
votes
2 answers

how to convert null coefficients for the variables in equations "x^2+x^2+2x-x-25" to be "+1x^2+1x^2+2x-1x-25"?

This is my attempting to fix the coefficient of any math equation variable for sum coefficients of the same variables like "x^2+x^2+2x-x-25" to be "+1x^2+1x^2+2x-1x-25" and then make the summation to be "2x^2+x-25", Notice that i have done the…
Hossam Hassan
  • 665
  • 1
  • 8
  • 22
-1
votes
2 answers

Chemical formula in css

I need to write several formulas in CSS (or is there some other way?) and integrate it on my quiz website for students. I already found some interesting examples in here: http://www.periodni.com/mathematical_and_chemical_equations_on_web.html But I…
Andrea
  • 19
  • 3
-1
votes
1 answer

Iterate to find value of (X) in matlab

I have the following equation (250-25)/((0.0106+1.89799*10^-3)+(log(x/15)/2*3.14*45)+(1/10*2*3.14*x))... ==157.19; i'm trying to find the value of x to make the right hand side equal to the left hand side. so far i've tried the following…
Mohamed Maher
  • 45
  • 1
  • 3
  • 8
1 2 3
12
13