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

Mathematical operations using MySQL and/or PHP

SQL1 $sql1 = "SELECT group_concat(Gericht_ID separator ',') as Gericht_ID FROM `warenkorb` WHERE Kunde_ID = '$kid'"; $result = mysqli_query($con, $sql1); $row = mysqli_fetch_array($result); $gerid = $row["Gericht_ID"]; print…
user7359340
1
vote
0 answers

How to write a mathematic equation in a table in Microsoft Access?

So I'm trying to write a mathematic equation in a table row in Microsoft Access , like but even if I copy it from Microsoft Word(for example), it automatically converts it to a^2+b^2=c^2 Any ideas ?
Vakho Akobia
  • 304
  • 1
  • 3
  • 13
1
vote
1 answer

$$ and \ \ are not rendering for math equation in browser using MathJax

I'm rendering mathematical equation in browser using MathJax with following code : Dynamic HTML content : $$If\ \ f(x) \ \ is \ continuous \ on \ [0,8]\ defined \ as$$
$$f(x)…
iAkshay
  • 1,143
  • 1
  • 13
  • 35
1
vote
1 answer

How can I use SQL's LIKE command with its own special characters?

I use Sybase Transact SQL with the very useful LIKE command, so to ensure that your string contains a number you simply need use: WHERE @test LIKE "%[0-9]%" Alternatively, to ensure that your list does not contain a number you can use: WHERE @test…
HugMyster
  • 329
  • 1
  • 4
  • 14
1
vote
3 answers

How to calculate Altitude using GPS latitude and longitude

How to calculate Altitude from GPS Latitude and Longitude values.What is the exact mathematical equation to solve this problem.
Mohith P
  • 585
  • 5
  • 14
1
vote
1 answer

Converting HTML text that contains Latex Comand for Mathematical formula to plain or attributed text outputting correct formula

I have set of questions stored in SQLite database. For mathematics subject those are stored as formula/equations in html format. I retrieve question and stored it as string: NSString *htmlstring = @"If 3x2 +…
1
vote
1 answer

how to get interval mathematically

If I have n of elements (e.g n=100) int n=100; int[] n=new int[n]; System.out.print("Enter something:"); Integer input =(Integer) System.console().readLine(); And I divide n to intervals (e.g partitioning=10) So in this case I have 10 intervals:…
1
vote
1 answer

How to pass time dependent value in Ode45 in matlab

I am using to solve a simple ode function . The code is given below. function window_sine % Some constant values to be used later in the…
1
vote
0 answers

Mathematica is getting slow when repeatedly starting an external program

I found a strange phenomenon that Mathematica is getting slow when I repeatedly started an external program by using ReadList. For example, the following code will display a significant increase of CPU time for each 'ls' command (my platform is OS…
1
vote
2 answers

Mathematical equivalent of multiple nested loops

When you have loop in the loop or nested loop, let`s say for-loop, regardless of the programming language(of course must be imperative) for(int j = 1; j <= 100; j++){ for(int k = 1; k <= 200; k++){ \\body or terms } } is the mathematical…
Dimitar
  • 4,402
  • 4
  • 31
  • 47
1
vote
1 answer

SetDelayed::Write ... is protected in module for recursively declared function

The following code results in a SetDelayed::write: "Tag Beta in Beta[row_Integer,col_Integer] is Protected." output by Mathematica. I cannot see the reason. Is the function definition I chose appropriate for the three different and recursively…
1
vote
1 answer

Use more "natural" form to manipulate piecewise step functions in Matlab MuPAD?

I have the unit step function: u0:= piecewise([-infinity < t and t < 0,0],[0 < t and t < infinity,1]): Now I want to plot it at some point: T:=1:; plot(u0|t=t-T/2); This works. But when I use a more natural expression: T:=1:; plot(u0(t-T/2)); it…
TraceKira
  • 281
  • 2
  • 13
1
vote
1 answer

Add Mathematical Equation in Protege

I want to develop an ontology using protege 5.0. In my ontology there is a data property named "x" which range is integer. Also I have a object property named "y". Is there anyway to add an equation like this to "y": x = x + 5. I want if the y…
Sanam
  • 77
  • 1
  • 11
1
vote
1 answer

Defining a function with its inverse inside in Mathematica

Can I use inverse of the same function when defining the function itself? For example b[x_]:=1+Integrate[InverseFunction[b][a],{a,0,x}] b[5] Typing that in I get an error: $RecursionLimit::reclim: Recursion depth of 256 exceeded. A simpler…
1
vote
3 answers

Python dot-multiply lists on list of lists, without using numpy

I am quite new to python and getting my head around arrays as such, and I am struck on a rather simple problem. I have a list of list, like so: a = [[1,0,1,0,1],[0,0,1,0,1],[0,0,1,0,1],[1,1,1,0,1],[1,0,0,0,0]] and I would like to multiply elements…
AJW
  • 5,569
  • 10
  • 44
  • 57