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
2 answers

postfix and prefix in printf and for function (C)

I'm sorry, I'm still a noob at C. I wonder why post and prefix have different effect in "printf" but have the same effect in "for"or maybe in other loop ? example : #include main() { int number = 0; printf("%d.\n", ++number); //It…
0
votes
1 answer

Is there any way to generate random mathematical expressions in c#?

I want to generate random mathematical expressions in c# like. 2*3-6 2(85+96)*12-96 78/8-9 ... etc please help me in this.
Rajan Verma - Aarvy
  • 1,969
  • 18
  • 20
0
votes
0 answers

Formula with features: unity at zero, zero at inf and control over the shape

I would like to seek help in finding a formula for following shape and behavior with controllability over behavior. with following features: y=f(x) y-> unity (or controllable constant) as x->0 y->0 as x->inf Steep fall after x=constant Control…
0
votes
1 answer

why the sampling proprety of dirac function gives this?

In MuPAD I simplify: simplify(2*t*dirac(t+1)) Which gives : -2*dirac(t + 1) I know that f(t)*dirac(t-k)=f(k)*dirac(t) so f(t)=2*t , dirac(t+1)=dirac(t-(-1)) so that means k=-1 So 2 * t * dirac(t+1) =2*(-1)*dirac(t) =-2*dirac(t) which is…
TraceKira
  • 281
  • 2
  • 13
0
votes
0 answers

Regarding removing spaces between terms in Mathematica

I have been generating some mathematical expressions using FORM (symbolic manipulation system). The expression I get then needs to be passed to Mathematica for further analysis. The problem I get is basically this: when I simply copy the output and…
0
votes
0 answers

Symbolic computations

How can I do symbolic computations in mathematica? I do not want to give a value to any Variable. Can I use Mathematica to create a set of equations, consisting only of symbolic variables, and then combine them, or solve by one specific variable? If…
Luca
  • 558
  • 4
  • 18
0
votes
1 answer

SSIS 2012 - How to specify the number of digits (precision) after the comma

I made an formula in an update statement in order to generate Targets according to a Date_Key. The table 'Test' exists of two relevant columns: 'Date_Key'(INT) and 'Target'(DECIMAL) The logic I want to implement is as follows: UPDATE …
user3248190
  • 101
  • 1
  • 10
0
votes
0 answers

Mathematica wrongly produces complex number instead of real

I have the following code in Mathematica 9.0 In[8]:= funkcja[a_] =Integrate[Sqrt[z]*1/Sqrt[2*Pi] Exp[-((z - a)^2/2)], {z, 0,Infinity}] Out[8]= (E^(-(a^2/4)) Sqrt[\[Pi]/2] (-a^2 BesselI[-(1/4), a^2/4] + (2 + a^2) BesselI[ 1/4, a^2/4] + a^2…
Darek
  • 1
  • 2
0
votes
0 answers

Convert 20 byte decimal to 24 byte hexadecimal

How can I convert a 20 byte decimal (74515898855732498125) to a 24 byte hexadecimal. This 24 byte hexa output will act as an encryption key for doing TripleDES. Please help with this.
0
votes
1 answer

How to insert values of string builder to an Integer Stack? (VB.Net)

This code basically takes a mathematical expression and evaluates it. The following code i have written in VB.net shamelessly taken from here : Expression Evaluation which has been written in Java. Public Function evaluate(expression As [String])…
Kavyash
  • 23
  • 3
0
votes
0 answers

How can I find a transformation matrix/Mathematical relation between two 5th degree polynomial curves in space?

I have the equation of two 5th degree polynomials which they don't intersect with each other. Each curve is made of 100 points and these two curves look similar but there are small differences. I am looking for a transformation matrix/mathematical…
0
votes
2 answers

Queue summation of something then show it in the end

I am trying to queue some mathematical expressions somewhere into python and then in the end I would like to show their summation. I am trying to do something like this: for i in range(0, n-1): sum_queue(pow(-1,i)/((2*i)+1)) print(sum(0)) #or…
Mohammad Areeb Siddiqui
  • 9,795
  • 14
  • 71
  • 113
0
votes
2 answers

How this representation is called?

If I tell you that the following X ⊕ X represents an xor operation between 2 arguments X, How you name this kind of logical/math representations for logic operations ? The table that recaps the properties for all the common logic operations used…
user2485710
  • 9,451
  • 13
  • 58
  • 102
0
votes
2 answers

How to parse a mathematical expression on operans and operators and solve it without using Regex?

I have some mathematical expressions as Java Strings (100 % 6)* 7 = and Sin(45) + log 100 – 3 ^ 5 =. I want to parse these on operands and operators then solve them. But I don't want to use Java Regular Expressions. What is the best solution?
Ehsan
  • 2,273
  • 8
  • 36
  • 70
0
votes
1 answer

How do c++ evaluate the mathematical expressions involving modulus for double data type?

In the following code the expression can not be evaluated since the compiler gives me an error #include int main() { std::cout<< "Welcome\nto\n\nc++!\n"; // std::cout<< "to c++ ! \n"; double a=2; double b=2; double c=3; …