Questions tagged [algebra]

Algebra is the branch of mathematics concerning the study of the rules of operations and relations, and the constructions and concepts arising from them. Questions about algebra that are not related to programming are off-topic at Stack Overflow.

Together with geometry, analysis, topology, combinatorics, and number theory, algebra is one of the main branches of pure mathematics.

Elementary algebra, often part of the curriculum in secondary education, introduces the concept of variables representing numbers. Statements based on these variables are manipulated using the rules of operations that apply to numbers, such as addition. This can be done for a variety of reasons, including equation solving. Algebra is much broader than elementary algebra and studies what happens when different rules of operations are used and when operations are devised for things other than numbers. Addition and multiplication can be generalized and their precise definitions lead to structures such as groups, rings and fields, studied in the area of mathematics called abstract algebra.

873 questions
-2
votes
1 answer

Please help to solve my equation in matlab

I spent more than around 15hrs trying to find values of two equations but no result comes out yet. My two equations are: (1.8778e21)=((n*x)/(n+0.0080))(1-exp(-5400*(x+0.0080))) (3.3658e21)=((n*x)/(n+0.0189))(1-exp(-5400*(x+0.0189))) I used sym …
-2
votes
2 answers

Solve two equations with two unknowns parameters

I have these two equations and I want to find the values of these two parameters: 9.393e(16) = ((N*K)/(K + 0.0045))*(1 - exp (-(K + 0.0045)*120)) 1.376e (17) = ((N*K)/(K + 0.0045))*(1 - exp (-(K + 0.0045)*240)) How can I solve it in matlab or…
-2
votes
1 answer

How to add or multiply digits of a number

As the title says i want to know if its possible to add or multiply digits of a number in matlab eg: for a number 123456789 add the digits, that is 1+2+3+4+5+6+7+8+9 =>45 =>4+5 => 9 advance thanks for your help
Eka
  • 14,170
  • 38
  • 128
  • 212
-2
votes
1 answer

Creating a java program that given 3 terms as input(a,b,c) in that order prints their roots

Wrie a method printRoots that given 3 terms as input(a,b,c) in that order prints their roots We have the following given information If b²-4ac is a positive number, your program should print “The two roots are X and Y” where X is the larger root…
Jenny Fer
  • 21
  • 1
  • 2
  • 7
-2
votes
2 answers

Is boolean algebra REALLY necessary for assembly programming?

I need to know because I find the whole thing confusing. I'm in a college algebra class right now though some of the boolean algebra seems quite basic (commutativity, associative properties, etc. ie. basic algebra). I was reading The Art of Assembly…
Johanne Irish
  • 1,033
  • 2
  • 10
  • 17
-3
votes
1 answer

Finding if there relationship between numbers

I have a challenge. This may be little tricky or even not possible but wanted to check if anyone has any thoughts on this? PS : This question is in general and not related to only to R. May be I can say its general mathematics I have a data df ColA …
manu p
  • 952
  • 4
  • 10
-3
votes
2 answers

How to use the proper cross product?

So a cross product is v1 = and v2 = defined as v1v2 = any a output of 32.000000. But I don't know if my code is wrong or wrong it the wrong way. But I'm not getting an weird text.…
-3
votes
2 answers

How to implement equation for calculate image dimensions in javascript?

Calculate image dimensions (image renderer) and the math checks out but i'm really stuck on how to actually implement it in code... The equation system: I. 2x + y = 1287 (viewport width) II. 4/3x - 3/4y = 0 How would you go about implementing this…
leventecsoba
  • 91
  • 1
  • 10
-3
votes
1 answer

How to get an approximate equation for reverse look up

Is there any method or way to get the approximate equation(x = g(y)) for doing a reverse lookup from Y to X. The following is the simple y = f(x) and its plot. import numpy as np import matplotlib.pyplot as plt formula = "2*x**6 + x**5 -3*x**4 +…
-3
votes
2 answers

Modulo Arithmetic in Modified Geometric Progression

We know that sum of n terms in a Geometric Progression is given by Sn = a1(1-r^n)/(1-r) if the series is of the form a1, a1*r, a1*r^2, a1*r^3....a1*r^n. Now i have modified geometric progression where series is of the form a1, (a1*r) mod p ,…
Chandan
  • 394
  • 6
  • 16
-3
votes
1 answer

Simplify boolean algebra expression

Starting from a truth table of one subtractor with three inputs and two outputs I've obtained the following boolean formula for the second output z2 (the "loan" of the bit to the left) : z2 = x0'x1'x2 + x0'x1x2' + x0'x1x2 + x0x1x2 (where x0' means…
-3
votes
1 answer

Making a math equation for overtime

right now i have an employee who is getting 500 dollars overtime when he works 40 hours and his basic salary is 3500 dollars, i need to have an equation to calculate the amount of dollars when he work any other amount of hours different salary or …
-3
votes
1 answer

How Do I Translate This Algebraic Expression In C++?

I need to write and execute a program in C++ that computes the value of the expression: 5x^2 + 12y / 3x , Where x = 12, And y = 9.8 This is what I have: int num1 = 12; float num2 = 9.8; float totalResult; totalResult = 5 * num1 * num2 + 12 * num2…
-3
votes
1 answer

How to prove the right identity in setoid in Agda

I wanted to prove group properties over integer. I found the setoid representation of integer makes proof easy. ℤ is defined as (ℕ , ℕ) such that (a , b) represents a - b zero : ℤ zero = 0 , 0 I have already proven leftIdZ : (a : ℤ) → zero + a ≡…
ajayv
  • 641
  • 6
  • 21
-3
votes
1 answer

Boolean expression F = x'y + xyz':

Using DeMorgan's theorem show that: a. (A + B)'(A' +B)' = 0 b. A + A'B + A'B' = 1 Boolean expression F = x'y + xyz': Derive an algebraic expression for the complement F' Show that F·F' = 0 Show that F + F' = 1 Please Help me
LamarZ
  • 1
  • 1
  • 2
  • 3