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

What is the difference between Mathematica Rules and the objects returned by GraphEdit?

This is actually a two-fold question. First: as someone coming from an OO programming background, I find Mathematica's use of lists as the basis of everything a bit annoying. So here is how a mathematica programmer (as far as I can tell) might…
John
  • 2,012
  • 2
  • 21
  • 33
1
vote
1 answer

Azure Data Factory - Executing Mathematical Operation from column value

I am new to Azure Data Factory, and I have searched everywhere for a solution that may be implemented for my necessity, but I haven't found any. My Problem: I have a table in Azure Database with a column containing a mathematical operation, about 50…
1
vote
1 answer

Maths symbol with facet_wrap doesn't display correctly

I have some data for which I want to get density plots. For each facet, I want to use personalized maths expression, but unfortunately, this doesn't display correctly using Tex function: ggplot(data = x, aes(x=.data[[clinical_factor]],…
1
vote
1 answer

Calling Functions repeatedly in Mathematica

I have the follwoing python code that I would like to convert to Mathematica. But I totally get stuck on how to deifne the functions I def shouldSwap and def findPermutations in Mathematica and then call on findPermutations for index + 1. How do I…
1
vote
1 answer

Mathematical equation for number of valid sequences (having no two 1's together) of N-bit number

I have encountered this interview puzzle and want to know its accurate answer. You can generate 2^n different binary sequence of a n-bit number. Among these sequences the sequence having two 1's together will be considered as invalid else valid.…
pankiii
  • 435
  • 3
  • 9
1
vote
2 answers

Insertion of leq symbol in substitute, Mathematical Annotation in R

I have the following graph: library(tidyverse) mm<-70 sdm<-12 weight_lim<-c(30, 110) xrange<-55 ggplot(data = data.frame(weight = weight_lim), aes(weight)) + stat_function(fun = dnorm, n = 101, args = list(mean = mm, sd = sdm),color=1) + …
Nicolas Molano
  • 693
  • 4
  • 15
1
vote
1 answer

Proportionality of parameter and mathematical expression

What is the best way to check if a parameter increase in a mathematical expression increases or decreases the expression as a whole (in Python, preferably SymPy)? Assumptions: all parameters are positive (i.e. > 0). Example A*B/(A+C): A should be…
Michael Schubert
  • 2,726
  • 4
  • 27
  • 49
1
vote
0 answers

Are there approximation formulae for the Jacobi Theta Functions?

I am looking for a complex-number approximation formula for the Jacobi Theta Functions that only uses simple functions. By simple, I mean supported natively by most programming languages and does not involve too many special functions as…
1
vote
0 answers

How can I use seshat on normal images as input in seshat (mathematical expression recognition library in C++)?

I have compiled seshat but it requires input in inkml or scgink format. As the code is in cpp I am unable to understand. How can I use this work (seshat) on normal math images? Any help will be much appreciated!! Note: I have seen other answers on…
1
vote
1 answer

Given a midpoint, gradient and length. How do I plot a line segment of specific length?

I am trying to plot the endpoints of the line segment which is a tangent to a circle in Python. I know the circle has center of (A, B), and a radius of r. The point at which I want to find the tangent at is (a, b). I want the tangent to be a segment…
Kerushi
  • 11
  • 2
1
vote
1 answer

number of distinct way to evaluate the expression

find out the number of distinct ways such that (i + 2*j+k ) % (x + y + 2*z) = 0 where 1 <= i, j, k, x, y, z <= N. N <=1000 Edit : In case of N=1, the only possible way is i = j = k = x = y = z =1.
1
vote
0 answers

Putting tilde below letters in R Markdown

I am trying to put a '~', without the quotes, under a letter, to specify a vector. I googled and found all the other diacritics you can put around the letters/numbers for R Markdown, but nothing for '~' below them. Any directions would be…
1
vote
0 answers

How can a 2D Manim transformation be embedded in 3D space?

Suppose I have a Manim transformation animation in ℝ2, such as from manimlib.imports import * def function(point): x, y, z = point return (x + 3*y)*RIGHT + (2*x + 4*y)*UP class Transient(LinearTransformationScene): CONFIG = { …
user10478
  • 327
  • 1
  • 16
1
vote
0 answers

Mathematica - defining variable as positive and real

I have a unitary Matrix which consists of Complex coefficients like A, B C etc I want to have a complex repres. For A like A = a0* Exp (i Phi) and saying that a0 is real and positiv. I tried the Assumption option but everytime it doesn't work when i…
Hrm
  • 11
  • 1
1
vote
1 answer

Can I include a variable inside a mathematical expression raw string?

I'm trying to plot multiple histograms in the same subplot, and also add legends to it. The legends requires a string for each label. For each string, I'm using mathematical expressions, but I will also need to include a variable to it. To be more…