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

PostgreSQL Mathematical Function

I have a table aps_sections with many integer fields (such as bare_width and worn_width). I also have multiple look up tables (such as aps_bare_width and aps_worn_width) which contain an ID column and a WEIGHTING column. The ID is recorded in the…
0
votes
1 answer

Android java.lang.VerifyError with exp4j Libraries

I tried to make my own small calculator, but I don't want to make all the business logic by myself. So I tried to use the javax.script since I heard that the javax.script needs a real JVM and is a JavaScriptParser. Then, I searched for other…
0
votes
1 answer

How to find the value of an unknown mathematical variable in a function Using Java

I am trying to solve a mathematical problem that is in the form of this function: f(x) = c1x1 + c2x2 + q1x12 + q2x1x2 + q3x22 Now I have created an interface where the user can input the values of c1, c2, q1, q2, and q3 Now what we need to solve…
Jevison7x
  • 709
  • 2
  • 14
  • 31
0
votes
1 answer

Inserting symbol in excel with php

I'm trying to insert the ≥ sign in Excel with the Com Object from PHP I've tried using chr(242), ó but I get only characters from ISO-8859-1 charset I now have no idea what to use to insert the character. Here is my function : $string =…
Marleyzs
  • 155
  • 2
  • 3
  • 12
0
votes
1 answer

Logical representation of return cases

I am trying to represent the return cases of this psuedo code function as an expression. Specifically to illustrate which return case executes when (A==X)&&(B==Y) Enum is defined as {X, Y, Z} Enum function(Enum A,Enum B) if ((A==X)||(B==X)) …
0
votes
1 answer

Symbolic limit in Maple with assumption

Here I can't find the limit limit(U0*(r^(n+1)-1)/(-1+r), n = infinity) in Maple with condition |r| < 1 which is obviously -U0/(-1+r). How can I tell Maple that abs(r) <1 so it automatically computes the limit. P.S. I tried >assume(r <1);…
argasm
  • 275
  • 3
  • 15
0
votes
1 answer

Linking error using DDMathParser (iOS 5, Xcode 4.2)

I try to add DDMathParser library to my project, but i get two linking errors. I'm a newbie in Objective-C programming, and it's still tricky for me. Below there is a snapshot of the errors i get: What should i do? I also tried CGMathParser but i…
0
votes
2 answers

How to convert C# function to mathematical equation for thesis writing

I am writing my thesis right now and i wonder is that possible to give the function as an input and get the mathematical equation of that function for putting into thesis. For example this is a function public static bool…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
-1
votes
1 answer

Difference of two variables having same values yields non-zero result

I am trying to evaluate a mathematical expression in C. The expression is a follows : Following is the code that I wrote to evaluate the mathematical expression : int main() { double x,y,A1,B1,C1,result; x = 8.1500e-07; y =…
bubucodex
  • 109
  • 6
-1
votes
2 answers

LaTex how to edit this equation?

I'm having issues turning this word equation into a LaTex equation. It's coming out looking dodgy, please help! I added a screen shot of the equation I want, and what I end up getting when I copy and paste into LaTex: WORD: LATEX CODE: \mathrm{=\…
oms9_6
  • 27
  • 2
-1
votes
1 answer

Evaluating math expressions in a string in python

I've a bunch of equations that are loaded from a JSON file and I'd like to evaluate these expressions. These expressions have some constants and values of the constants (K1, K2, ...) are also saved in the json file. The values corresponding to the…
Natasha
  • 1,111
  • 5
  • 28
  • 66
-1
votes
1 answer

Correctly formulate if statement in switch

This might be a very rudimentary question, but I'm playing around with if statements and the following example won't work with error "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into…
Markus
  • 131
  • 5
-1
votes
2 answers

How can I create a function from this data?

I have a dataset in the form of a table: Score Percentile 381 1 382 2 383 2 ... 569 98 570 99 The complete table is here as a Google spreadsheet. Currently, I am computing a score and then doing a…
Michael C
  • 195
  • 6
-1
votes
1 answer

Split mathemtical function using signs in c++

I want to split a mathematical function by the sign of the variables in it like this : string input = x-5y+3z=10 output--> [x,-5y,+3z,=10] i used to do this on java by using input.split() function , but because I'm a c++ beginner i cannot find a…
-1
votes
1 answer

X and Y are not correlated, but Y is predictor of Xin random forests classifier. How to represent this using statistics and machine learning?

X and Y are not correlated (0.3); however, when I place X in random forests classifier predicting Y, alongside two (A, B) other (related) variables, X and two other variables (A, B) are significant predictors of Y. Note that the two other (A, B)…