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

Basic DateTime Algebra

How do i go about writing some basic algebra math in vb.net? Example: I need to schedule a process to run 60 days before start date of an object. When my process runs I do: Now(UTC) - StarDate(UTC) = days diff If days diff less than 60, i run my…
BKBK
  • 21
  • 3
-2
votes
2 answers

3D Pythagoras program not returning correct results

So I want to calculate the distance from the two furthest points in a cuboid. The mathematical equation for this is z^2 = a^2 + b^2 + c^2 but when I do that it doesn't return correctly. from math import * dimension = input("What dimension: ") if…
-2
votes
1 answer

Simultaneos Equation Solver using HTML and Javascript

Objective of the project: To solve a simultaneous equation consisting of two linear equations using Matrices, the formula: X = A^-1 * B Where A is the matrix consisting of the coefficants of the two equations, B is the matrix…
-2
votes
1 answer

Propositional Logic Identity

How to show that ↔ ≡ ∨ → ( ∧ ) So far I've done this... ↔ ≡(p → q) ∧(q → p) Law of Algebra (p → q) ∧ (q → p) ≡(~p V q) ∧ (q → p) Law of Conditional Proposition (~p V q) ∧ (q → p) ≡(~p V q) ∧ (~q V p) Law of Conditional Proposition
-2
votes
1 answer

Find the age of son from sum of father & son's age?

The sum of John's age and his father's age is 45. Five years ago, John father's age was six times John's age. How old is John now? Given Answers: a) 8, b) 9, c) 10, d) 12 Any brief help appriciated
waxil
  • 49
  • 6
-2
votes
1 answer

Complete Algebraic Equations

Im trying to build an app that graphs an equation based on user input. The equation would be in slope intercept form: y = mx + b, for m as slope and b as y intercept. However, this isn't working for me in python! I tried this: >>> x = 3 >>>…
doejs
  • 96
  • 10
-2
votes
1 answer

Linear Scale vs. Log Scale

This may be a very simple question, but I haven't been in touch with Algorithms since a while. I have a logarithmic scale of 20,100,500,2500,12500 which relates to 1,2,3,4,5 on the respectively. Now, I want to find out as to where the value 225…
-2
votes
2 answers

Multiplying fractional exponents

I'm doing Tim Roughgarden's Algorithms course and he has a slide with an integer multiplication algorithm. Whats the rule that makes 10(n/2)a * 10(n/2)c become 10(n)ac ? What do you do when multiplying fractional exponents like that?
edd91
  • 185
  • 8
-2
votes
1 answer

Simplifying Boolean Expressions

I have constructed truth tables to prove that: ABC + ABC'+ AB'C A'BC = AB+AC+BC, but how do i prove it by simplifying the expression? I'm fairly new to boolean algebra and have tried to use the basic identities to figure it out, but can't seem to…
mish1234
  • 1
  • 1
-2
votes
1 answer

C: Convert big number from string to int modulo n

I'm trying to convert realy big numbers (>100 digits) from string to integer in Zn additive group (modulo n). n is guaranteed to be in standard C int range (say n=12345). Neither the simple approach of atoi then "%", nor BigIntiger works here. Any…
Dave
  • 463
  • 1
  • 3
  • 14
-2
votes
1 answer

GSL linear algebra example fails

I recently installed GSL for use in my computing homework. I installed it from a pre built library and linked it to CodeBlocks, then ran the test example for GSL (the bessel function) to make sure it worked. Everything going fine. Then I tried the…
Alex Howard
  • 319
  • 3
  • 13
-2
votes
1 answer

Boolean Algebraic Simplification

So, I have several of these questions. I just need help on one of them. Also would you provide the explanation to how you got your answer. I would be very much appreciated Show the algebraic simplification of ab(!c) + !ab(!c) to b(!c).
-2
votes
1 answer

boolean algebra simplification provided equation

i have this one OM5= NOT ( A OR (B AND C)) OR D i provided i photo of it. https://i.stack.imgur.com/opS1I.png I used different calcs that were online and all gave me this result http://www.wolframalpha.com/input/?i=not+(a+or+b%26%26c)+or+d like the…
kn13
  • 27
  • 7
-2
votes
2 answers

Converting from spherical coordinates to cartesian around arbitrary vector N

So if I'm given an arbitrary unit vector N and another vector V defined in spherical coordinates theta (polar angle between N and V) and phi (azimuthal angle) and r = 1. How do I convert vector V into cartesian coordinates? Now, I know that in…
user1855952
  • 1,515
  • 5
  • 26
  • 55