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
1 answer

How to type lower bar in a string by python plot?

I want to add some text to a python plot. I'm using r'$\bar{p}$', but I want the bar to be at the bottom. I tried to use latex package accent and write r'$\usepackage{accents} \underaccent{\bar}{p}$'. But it doesn't work. Any idea how to do…
lilysirius
  • 124
  • 2
  • 10
0
votes
2 answers

Find mean of value row wise in a list

I am trying find mean of the values in two columns. Input: tweetcricscore 34 #afgvssco 51 tweetcricscore 23 #afgvszim 46 tweetcricscore 24 #banvsire 12 tweetcricscore 456 #banvsned 46 tweetcricscore 653 #canvsnk 1 tweetcricscore 789…
Sitz Blogz
  • 1,061
  • 6
  • 30
  • 54
0
votes
0 answers

How do I plot a middle Riemann sum in Mathematica

I want to plot the middle Riemann sum of half a circle from the interval -1 to 1. Half the circle is: Sqrt[1 - x^2] Currently I'm getting the right Riemann sum by getting the x axis, and y axis and then getting a table for the…
0
votes
1 answer

The method of characteristics for two dimensional advection equation

Given the following function to solve the two-dimensional advection equation in a rectangle: function qnew = SemiLagrAdvect(u,v,q,qS,qN,qW,qE) global N M global dx dy global dt Re u = reshape(u,N,M); v = reshape(v,N,M); q =…
0
votes
4 answers

How to create a mathematical expression from operators and operands in a queue

I'm trying to build a mathematical expression (including parenthesis) with the operators and operands included in a queue. Here is my code: string createExp (queue q) { string s; string s1, s2; char c; while (!q.empty()) { …
elena.bdc
  • 89
  • 1
  • 2
  • 6
0
votes
1 answer

Reconstruction of input in autoencoders

Autoencoders actually reconstructs the original input and also it helps in dimensionality reduction as the number of hidden neurons is less compared to the number of input neurons. My question is how output values are generated from the hidden…
0
votes
2 answers

How do ∀x [P(x) ∨ Q(x)] and ∀x [P(x)] ∨ ∀x [Q(x)] differ in their meaning?

How do ∀x [P(x) ∨ Q(x)] and ∀x [P(x)] ∨ ∀x [Q(x)] differ in their meaning? I thought it was because when ∀x is defined twice there is a possibility of a different x value for both P(x) and Q(x) but then I noticed it was for all so this would not be…
user4780686
0
votes
1 answer

how to concatenate tokens and strings and numbers in java?

I have a program where I'm trying to concatenate token objects with string, using operands (numbers and variables) and operators (+, -, *, /): private static Token evalOp(Token op, Token t1, Token t2) { return "Operator: [" +…
0
votes
1 answer

How to draw a 2d projection (circle) of a 3D object (sphere) in Mathematica?

SphericalPlot3D[ Cos[[Theta]], {[Theta], 0, [Pi]}, {[Phi], 0, 2 [Pi]}] This gives me a sphere. But what should I do in order to get a projection of it along any of the plane, let say a-b plane? It should look like a circle. Any idea would be…
0
votes
0 answers

How to find the angle between source object and all other objects falls in the field of view of source object?

I am working on a project of security development using RFID tags and RFID reader. RFID reader has a field of view of 70 degrees and any tag fall under this area can be detected by reader. I want to know the respective angle between RFID reader and…
0
votes
2 answers

Mathematical expressions in pseudo code

I have pseudo code am trying to implement in python but I cant seem to remember what p ← 0 would mean in logic or calculus.
philo
  • 121
  • 1
  • 9
0
votes
2 answers

Advanced mathematical expressions in JavaScript - How to

I am about to do some calculating with JavaScript. How do one write (rather complex) mathematical expressions in JavaScript? Let's take this as an example, where I use x as a variable: -2(10^ -10)x^6 Is it possible to write it just like that? Or…
JakeTheSnake
  • 2,456
  • 3
  • 14
  • 26
0
votes
0 answers

how to parse mathematical functions in C++

For my exam, I want to do a project in C++, a program that is solving mathematical functions. I mean, if I read from keyboard 2*x*x+3*x+4, and x is, i don't know, 3, i want to display 31. I think I might use strings, or character sequence, and if…
0
votes
1 answer

Fair-Whipple-Hsiao Q calculation

This Equation: J = 0,0008695 * (Q ^ 1,75 / D ^ 4,75) Gives J for Fair-Whipple-Hsiao. How to calculate Q using Wolfram Mathematica ?
0
votes
3 answers

Dijkstra’s algorithm and functions

the question is: suppose I have an input function like sin(2-cos(3*A/B)^2.5)+0.756*(C*D+3-B) specified with a BNF, I will parse input using recursive descent algorithm, and then how can I use or change Dijkstra’s algorithm to handle this given…
baris.aydinoz
  • 1,902
  • 2
  • 18
  • 28