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

What is a good data structure for processing boolean algebra equations?

I'm creating a program that will calculate the truth values for a boolean algebra equation. I need to find a good data structure that will be able to correctly process the order of operations of an equation involving AND, OR, NOT, and parentheses as…
3
votes
4 answers

How to create a notebook with a properly formatted expression

I have a Mathematica expression generated by another program, which I would like to open in a notebook, properly formatted. For instance, the other program generates…
3
votes
5 answers

How to display 2^3 in Javascript

I am building an app using appcelerator which needs to display a mathematical expression e.g 2^3 but with the 3 being a small number above the 2. Is there a way to express mathematical expressions in Javascript? Notes The text is a static bit of…
woot586
  • 3,906
  • 10
  • 32
  • 40
3
votes
1 answer

How to use Latex in dev.to editor?

I wonder is there some way I could render math formulas in dev.to editor to show as mathematical equations in my articles?
user12460726
3
votes
1 answer

Tokenise mathematical (infix) expression in VBA

I need to tokenize a mathematical expression using VBA. I have a working solution but am looking for a more efficient way of doing it (possibly RegExp). My current solution: Function TokeniseTheString(str As String) As String() Dim Operators() As…
Malan Kriel
  • 301
  • 1
  • 2
  • 17
3
votes
1 answer

Reverse Elo Algorithm

I implement elo algorithm however it was working in quite opposite way as i mix results (set win where is lose and opposite..) That little detail fail my results - thats why question is - how can i reverse that ? I have only new Elo and old elo as…
Alex R
  • 175
  • 1
  • 12
3
votes
1 answer

Evaluating mathematical expressions with custom script functions

I am looking for an algorithm or approach to evaluate mathematical expressions that are stated as string. The expression contains mathematical components but also custom functions. I look to implement said algorithm in C#/.Net. I am aware that…
Matt
  • 7,004
  • 11
  • 71
  • 117
3
votes
1 answer

mathematical operators in htaccess file

is it possible to use mathematical operators in .htaccess file? for example i want to redirect a page with id=100 to a page with id=30 ?
hd.
  • 17,596
  • 46
  • 115
  • 165
3
votes
1 answer

Predicting price using previous prices with R and Neural Networks (neuralnet)

Within the R Neural Network page, I am using the neural network function to attempt to predict stock price. Training data contains columns High,Low,Open,Close. myformula <- close ~…
edb500
  • 313
  • 1
  • 3
  • 14
3
votes
1 answer

Tornado plot in R

I am trying to make a tornado plot (a.k.a. sensitivity graph) in R. The goal is to visualize the effect of a 10% increase and 10% decrease in some variables. So far I have gotten this result This is the code I am using: # Tornado plot data <-…
Siso
  • 89
  • 2
  • 7
3
votes
1 answer

What gives best precision, exponential of the difference or the quotient of the exponentials?

Given a typical programming language. I have two numbers floating point numbers a and b which are close to one another (i.e. their difference is much smaller, in absolute value, than their average). |a-b| << |a+b|/2 Mathematically, we have…
3
votes
1 answer

Convert stroke data to SCG Ink format

I'd like to use Seshat—a handwritten math expression parser—for a project I'm working on, but I'm having some trouble understanding how to provide the program its proper input, an InkML or SCG Ink file. I've taken a long look at an online example…
3
votes
1 answer

Converting seconds to time with two decimal places

Possible Duplicate: Convert seconds into days, hours, minutes, seconds in PHP How to convert a decimal into time, eg. HH:MM:SS what I am doing here is I am saving posts time as UTC in mysql, after retrieving the time stamp from sql I am using…
Random Guy
  • 2,878
  • 5
  • 20
  • 32
3
votes
2 answers

Function to detect conflicting mathematical operators in VB6

I've developed a program which generates insurance quotes using different types of coverages based on state criteria. Now I want to add the ability to specify 'rules'. For example we may have 3 types of coverage (we'll call them UM, BI, and PD). …
user1457296
  • 239
  • 1
  • 3
  • 8
3
votes
1 answer

To check if plot empty in Mathematica

Is there a way in Mathematica to check whether a plot is empty or not? By empty, I mean it is only showing the axes and not any data points. I have a function that, depending on its inputs, gives some data points (to be plotted later) or none, but…
darXider
  • 447
  • 5
  • 16
1 2
3
17 18