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

Understanding solution to differential equation in Mathematica

I got a solution using DSolve as : Function[{t}, -(( 1. (2. + k (-1. - 2. t) + k^2 (-0.5 + 1. t + 1. t^2)))/k^3) + E^(-1. k t) C[1]] What does '.' mean and '()'? For example, in the case of '2.+k(-1.-2.t)', what does it mean? How to…
codepk
  • 605
  • 2
  • 10
  • 23
1
vote
1 answer

MYSQL Mathematical Operations Priority

this my code: $stmt->prepare("UPDATE ".$PapierTableName." SET nrating=nrating+1,`rating`=(rating+?)/nrating WHERE `id`=? AND `title`=?"); $stmt->bind_param('iis', $rat,$id,$tit); My question is about the priority: in this operation…
Razorphyn
  • 1,314
  • 13
  • 37
1
vote
0 answers

Mathematical Calculations in a sql query

In my project I have following database tables: Course ------- 1.Course Id 2.Course Name 3.Term Name Subject ------- 1.Subject Id 2.Subject Name 3.Term Name Term ----- 1.Term Id 2.Term Name 3.Total Working Days Working Day ------------- 1.Work…
1
vote
0 answers

MuParser doesn't work in visusl studio 2012

Hi I need to use muParser (c# wrapper) for some Mathematical expressions. In vs 2010 it works good but in vs 2012 the program terminates without any error message. Has anyone faced such problem? Any solution?
Ahmad
  • 11
  • 2
1
vote
2 answers

Derivative of series in mathematica

I have an equation like: y= Sum[ i x[i] , {i,10}] and I want to calculate the derivative : D[y,x[i]] -> = i How can I do that in mathematica ? I can do D[y, x[3]] and it gives me 3 but if I enter D[y, x[i]] it returns 0 but I expect i. Is…
mghandi
  • 275
  • 1
  • 9
1
vote
3 answers

Selecting specific values following a modulus operation

I've got a vector test <- c(1:90) (approximately representing 3 months in daily time-steps), I want to give a value to a variable during a run of a model only when the time is between days 10 and 20 in each month: //model code if(month-day>10 &&…
ChrisW
  • 4,970
  • 7
  • 55
  • 92
0
votes
0 answers

Find mathematical interpretation of loss function and back propagation

I have a code that uses machine learning and neural network. I used TensorFlow 2.0 and Keras. it is a classification program that gives output as 0 or 1. I used ReLU as activation function. Sparse SoftMax Cross Entropy is used as loss function.…
0
votes
1 answer

Ical Expression in Oracle Integration CLoud

For example, Schedule on August 24th, 25th, and 28th, hourly from 8AM to 6PM, respectively. With a biweekly cadence, the following execution would be on Sept 7th, 8th, and 11th, Need 9 days gap between it . I am trying…
0
votes
0 answers

Linearization of two integer variables' division

Could you please help me to find a way to linearize this equation? Cost = sum(CV[i]*Q[i] for i in range(10)) / sum(Q[i] for i in range(10)) The above-mentioned equation is a constraint of an MILP model in which, the CV is a parameter (a constant…
0
votes
1 answer

Java - multiple levels of negative signs in a mathematical expression evaluator program

I've been trying to make a mathematical expression evaluator program (calculator) in java and I'm stuck with a problem: I can't find a way to make the program support mathematical expressions with multi-levels of negative signs. The expression 1 -…
0
votes
0 answers

How to filter a constraint on a sparse matrix when summing across a multi-index using ompr and R?

I'm working on a modified assignment problem that assigns an individual in an occupation code to a division at a facility. However, not all occupations can be assigned to each division, and not all facilities have each division, so the matrix is…
0
votes
0 answers

Inline equations in flextable

Drawing from the example in the flextable::as_equation() page: library(flextable) if(require("equatags") && mathjax_available()){ data.frame(formula = "a \\ne 0") |> flextable() |> compose( j = "formula", value =…
Mori
  • 182
  • 14
0
votes
1 answer

I want to convert a geojson from dxf file and longitude, latitude. How can we do that?

I wrote a function that takes dxfgeometry and coordinate points and converts them to the geoJSON. But it was not showing the location which it was supposed to show. Can you provide me a way and mathematical calculations to create a geojson file?
0
votes
1 answer

Constructing a Mathematical Equation for Image Bands in Google Earth Engine

I am struggling with an equation, getting some syntax error in it, The equation is following: formula: (K2 / ln ((K1/TOA_band10)+1)) - 273.15 I am trying to do operation on image bands, but not being able to construct the right code. I have used…
0
votes
0 answers

Modelling a decreasing growth rate - I want to calculate a growth model in discrete time such that my client base grows from 5 to 10000 in 8 years?

I am looking at a financial model such that at time=0 the number of clients I have is 5. If I consider discrete time such that the number of clients at time t is equal to: y(t) = y0 * ∏ t-10 (1 + r(i)) I want to know if each period is a month and…