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
0
votes
0 answers

Find matrix with size m satisfy A^n = I(m)

I've just began to learn mathematics at university, and I have met this problem, that is: find all matrix A(m) that A^n = I(m). Can you help me solve this?
0
votes
0 answers

time dependent equation in python. Calling out specific values

I have a formula which calculates the position of a point in space: x = d[0]*math.cos(t) and I would like to be able to call out the position in a certain time. I thought that maybe I could use for loop 'for' so I can know the positions in the…
Blazej Kowalski
  • 367
  • 1
  • 6
  • 16
0
votes
1 answer

Convert Lon/Lat degrees to X/Y coordinates in unity3d using c#

I need to place 3d models at gps lat/lon degree coordinates which correspond with unity x/y coordinates and for that I need to convert the gps data , i.e, latitude and longitude in degrees to x, y coordinates in unity for my project in Augmented…
0
votes
1 answer

function with parameter that is a mathematical func

I'd like to have a function like this in Python: class EvaluationStrategy(object): def __init__(self, test_function): self.test_function = test_function class TestFunction(object): def objective_function(self, design_variable1,…
0
votes
3 answers

How to know the result of Complex has one or more real roots

I want to use Complex to calculate the minus pow. As $(-10)^(1/3)$ that use the Math.Pow will get the NAN. But when I use Complex.Pow, I can get the result. Complex c = Complex.Pow(-10, 1.0/3); var r =…
lindexi
  • 4,182
  • 3
  • 19
  • 65
0
votes
1 answer

Taking a square root equation and representing it as a string in Java

I'm trying to represent a square root in a string in Java, however ... The Unicode for a square root, which is \u221A, just prints the symbol for a square root - I want it to wrap around my equation like so: An example of a normal square root…
0
votes
1 answer

Perl: String manipulation surrounding a mathematical expression

I´m learning Perl, I would like to surrounded an expression like that function1(mathematical_expresion1)*function2(mathematical_expresion2) Where 'function1'and 'function2' could be whatever word and combine numbers inside, for instance function1…
Peterstone
  • 7,119
  • 14
  • 41
  • 49
0
votes
2 answers

Recursively differentiating basic expression

If I have an expression, such as x * x * x, stored in a data structure like: mult(var x, mult(var x, var x)) And I want to implement a function to recursively differentiate the equation (so to 3 * x * x or x*x + (x + x)*x etc, no simplification…
edd91
  • 185
  • 8
0
votes
1 answer

Associate values to spinner

I want to implement in my application, certain mathematical calculation, but, it has a variable that covers age group and data, I will show in practice: 'Adequação da CB = CB obtida/CB percentile 50 * 100' . This is the formula, where the variable…
0
votes
1 answer

Where is the 0=1 bug coming from in this Mathematica code?

I am trying to build a simple voter model. I need to build a matrix whose values are given by a function. Then aggregate them (in this case simple average) to determine the result (simple 1 or 0). Then determine the deviance of the result from the…
0
votes
1 answer

Evaluating a mathematical expression (python)

print('Enter a mathematical expression: ') expression = input() space = expression.find(' ') oprand1 = expression[0 : space] oprand1 = int(oprand1) op = expression.find('+' or '*' or '-' or '/') oprand2 = expression[op + 1 : ] oprand2…
0
votes
1 answer

Mathematical relations between functions

I'm going to use an exemple to ask my question, lets suppose we have a function G composed of 3 functions f1, f2 and f3, like this picture : the function G = f3(f2(f1(input))) or g = f3 º f2 º f1 an other example when G is composed of 4 functions…
0
votes
1 answer

Format a mathematical expression from user input to python

I want to be able convert the input of a mathematical expression from a user to the python format for math expressions. For example if the user input is: 3x^2+5 I want to be able to convert that into 3*x**2+5 so that I can user this expression…
0
votes
2 answers

tree expression - Node setting up

I am confused with a project that I study for a course. I have to build a tree-expression, I know how the algorithm works, but I have difficulties with setting up the nodes. The instructor gave us this class: Expression Node Where it has 2 other…
Makaveli
  • 309
  • 1
  • 3
  • 9
0
votes
2 answers

Getting "0" in simple mathematical function through window function

I need to find the percent the product was on shelf. So I use this query: select *, cast((t1.CountProd / t1.SumProd)*100 as dec(12,10)) as asasa from (select *, count(Nalichie) over (partition by ProductID) as…
Andriy
  • 123
  • 1
  • 9