Questions tagged [mathematical-expressions]

In mathematics, an expression is a finite combination of symbols that is well-formed according to rules that depend on the context. Symbols can designate numbers (constants), variables, operations, functions, and other mathematical symbols, as well as punctuation, symbols of grouping, and other syntactic symbols.

Strings of symbols that violate the rules of syntax are not well-formed and are not valid mathematical expressions. For example:

would not be considered a mathematical expression but only a meaningless jumble.

In algebra an expression may be used to designate a value, which might depend on values assigned to variables occurring in the expression; the determination of this value depends on the semantics attached to the symbols of the expression.

These semantic rules may declare that certain expressions do not designate any value; such expressions are said to have an undefined value, but they are well-formed expressions nonetheless.

In general the meaning of expressions is not limited to designating values; for instance, an expression might designate a condition, or an equation that is to be solved, or it can be viewed as an object in its own right that can be manipulated according to certain rules. Certain expressions that designate a value simultaneously express a condition that is assumed to hold, for instance those involving the operator to designate an internal direct sum.

Being an expression is a syntactic concept; although different mathematical fields have different notions of valid expressions, the values associated to variables does not play a role. See formal language for general considerations on how expressions are constructed, and formal semantics for questions concerning attaching meaning (values) to expressions.

261 questions
-1
votes
3 answers

Mathematic equation

I have this equation : S = val.X^3 - val.X^2 + val.X -val Knowing that all the the variables are int64, and S and val are known values, what is the best way to solve it, I used numpy and Z3, but can't get the right answer, any lead would be helpful
-1
votes
1 answer

Pattern matching of `space` in mathematical expressions

I want a pattern which can match both of these expressions: expr1 = `a + b` expr1 = `a+b` Thanks.
-1
votes
1 answer

R: a way to obtain the expression of a model that is fit to the data

x = c(0:10) y = c(0, 1, 4, 9, 15, 26, 36.6, 50, 65, 81, 104) plot(y ~ x) Suppose I have a very simple data set with 10 points. I'm trying to come up with a mathematical equation for a model that describes this data set. There are different…
Adrian
  • 9,229
  • 24
  • 74
  • 132
-1
votes
1 answer

Solving MLE(Maximum Likelihood Estimation) equation using SYMPY

I have an equation in 4 variables x, v, eta(e), beta(b). I want to substitute x and v with various values and create an equation by multiplying all the obtained terms. Image of Code in sympy Using SYMPY, How to solve the obtained equation in 2…
-1
votes
1 answer

Creating basic formula for workforce and manhours

I am in the process of creating a basic maths formula for my application.But I am not getting an idea, please find below situation. I have 2 country name say c1 and c2. Percentage of man hours (how to find based on a1 and a2) a1.Man-hours of c1…
atc
  • 621
  • 8
  • 31
-1
votes
1 answer

different values on evaluating an expression in c in float and int representation?

on changing this expression to postfix representation and then evaluating it.. I'm getting 17.8 as answer.. if "n" would have been of float type then there is no problem in answer. since n is a variable of integer type, digits after decimal oint…
-2
votes
1 answer

How to convert mathematical expressions into C statement?

How to convert each of the following mathematical expressions to its equivalent statement in C? 1 / (x^2 + y^2) square root of (b^2 - 4ac)
Joey
  • 23
  • 1
  • 1
  • 2
-2
votes
1 answer

Evaluating mathematical expression given as String

I have List of class Data as dataList, Data contains two variable a and b. public class Data { int a,b; public Data(int a, int b){ this.a=a; this.b=b; } //also contains getter and setter method } List dataList=new…
Nilesh
  • 9
  • 2
-2
votes
1 answer

a modulo b = c , I have b and c , how can I find a?

Is there any way to find the variable "a" where ( a modulo b = c ) and "b" and "c" are known ?
-2
votes
1 answer

google real time data of rolling 30 mins at interval of 5 min

I have google real time data of rolling 30 mins at interval of 5 min. how can i get data of 5 min each, share logic for the same thanks i have data like 01 05 am............. 10 00 am 20 user(data of 30 mins i.e 9 30 am to 10 00 am) 10 05 am 25…
-2
votes
1 answer

I want to generate some mathematical questions by using rand and function

I am learning c++ program in my home. So I am not good at using it. First I want to output the programme like the below statement. "Question 1: 4 + 5 = 9 correct! "Question 2: 5 * 5 = 9 fail! "Question 3: 9 - 5 = 4 correct! I want to produce the…
hoi
  • 11
  • 1
  • 4
-2
votes
1 answer

Operator precedence c#

I need to control operator precedence in textbox. It should be 17. How to fix it?
user5695111
  • 111
  • 2
  • 13
-2
votes
1 answer

How do I calculate LINEST in C# with a zero intercept?

The normal Linest is easy, but I don't know how to "b is set equal to 0 and the m-values are adjusted to fit y = mx." static class Program { static void Main(string[] args) { var yValues = new double[] { 1, 9, 5, 7 }; var…
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
-3
votes
2 answers

How can I implement an absolute value operation?

How can I print the absolute value of a result? Example: |4-5| the result will be 1 (negative sign will be neglected) |5-4| this also have the answer of 1 (positive value remains as positive value)
Bharath R
  • 19
  • 1
-3
votes
2 answers

I'm trying to find out six values based on 4 equations

This code currently outputs 0 1 0 1 1 2 F0 0 1 0 1 1 2 F1 0 1 0 1 1 3 F0 0 1 0 1 1 3 F1 0 1 0 1 1 4 F0 etc. I'm trying to find out the correct values of green, yellow, purple, orange, red and blue using brute force These values can't repeat (i.e.…
Artain
  • 7
  • 2
1 2 3
17
18