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

MIPS CODE mathematical expression with OR and AND symbols

Can some one help me with how to use OR and AND in MIPS code In this equation [25] = [( ∗ c/512 + ∗ ) |16]&[| ∗ c/16 − [18]] ( ∗ c/512 + ∗ ) |16 OR used here | OR used here. and AND used in between two expression. Kindly help! Because I have done…
0
votes
1 answer

Express equation in CPLEX ILOG

i'm currently having a project coding on IBM ILOG Cplex. I've been translating the mathematical model to constraint in CPLEX. here it is, i wonder how we code this constraint on cplex since it has 3 elements. i've try the OR logical but the results…
0
votes
1 answer

How to insert line breaks in ggplot2' geom_label

Note: this question is updated, so see "EDIT" I'm drawing a bar chart with some annotations using ggplot2. I would like to add a line break (\n) before and after the mathematical symbol code (i.e. %down%). However, paste(..., sep = "\n") in…
0
votes
0 answers

C# 4th order curve fit doesn't match

After using a few codes which are related to somekind of polyfit, I'm not having the succes i wanted. I have a few data points which always start in 0,0 and ends in 1,1. So I always should have a funtion which looks like this: hx^4 + ix^3 + jx^2 +…
0
votes
0 answers

writing equation in spherical coordinates in Matlab

I want to implement this equation of spherical coordinates in matlab, but I am really confused how to get the value of j1 from it. and what values of phie1 and theeta1 should i define? j1 = (cos(ø1)cos(∅1) , cos(ø1)sin(θ1) , sin(ø1))T while I…
0
votes
1 answer

Can you please tell me how to solve four transcendental equations of four unknowns?

I have tried solving 4 equations of 4 unknowns in MATLAB and Mathematica. I used vpasolve for finding the unknowns in MATLAB. Here is the MATLAB code. Y1 = 0.02; l1 = 0.0172; syms Y2 Y3 l2 l3; lambda = [0.0713 0.0688 0.0665]; b1 = 0.1170; b3 =…
0
votes
0 answers

R: applying multiple math expressions row-wise

I'm still very new to R and I am trying to apply 3 different equations using values from every row of a dataframe, called x. The variables in the equations are values from certain columns in x. I want to finish with the results of the equations as…
Paige
  • 3
  • 1
0
votes
1 answer

How to check whether a solution set exists, which satisfies a set of linear inequalities?

Is it possible to determine whether a set of solution exists that satisfies a set of linear inequalities outside Matlab (programmatically) Just a true/false would be enough but is it possible to do using a library in JavaScript (preferably as it is…
0
votes
4 answers

Optimization: Farming wheat and rice

This is the problem statement An Indian farmer has a piece of farmland, say L square kilometers long, and wants to either sow wheat or rice or a combination of both. The farmer has a limited amount of F kg of fertilizer and P kg of…
0
votes
1 answer

A problem in using Five-point difference format solve Poisson equation with Matlab

The problem set is this, a poisson equation. I want to solve it with Five-point difference format. But i have some problem in the code. enter image description here The code function F =…
Zhao Su
  • 5
  • 2
0
votes
1 answer

unable to get arithmetic calculation answer in Batch script

I am trying to get Percentage Memory usage of a particular process PID, but only values are getting printed and not the calculation output value. @echo off setlocal enableextensions EnableDelayedExpansion set PID=5716 for /f "tokens=5 delims= "…
0
votes
1 answer

Why does `evalb(((3*x + 1)^5)(3*x - 1)/x^6 = ((3 + 1/x)^5)(3 - 1/x)) assuming (0 < x)` return `false` in Maple?

The question should perhaps be why does (3*x + 1)^5 * (3*x - 1) / x^6 = (3 + 1/x)^5 * (3 - 1/x) evaluate to false in Maple, even with the assumption that x > 0. The same expression evaluates to true in Mathematica and, of course, the statement…
Albert
  • 174
  • 8
0
votes
1 answer

Need to draw ">" shape on beginning of line

I have a line drawn in red color(basically, i have co-ordinates (x1,y1) and (x2,y2)). Now I'm supposed to draw two line which are in green color intersecting at the beginning point of line(x1, y1) The red line can be in any angle, so i need some…
RandomGuy
  • 91
  • 1
  • 10
0
votes
1 answer

Mathematica function with multiple IF[] conditionals

I have here a complicated bit of code that is not pretty nor easy to follow, but it represents a simplification of a larger body of code I am working with. I am a Mathematica novice and have already received some help on this issue from…
ZB18749
  • 49
  • 1
  • 6
0
votes
1 answer

Jupyter markdown: Curly brace symbole doesn't show correctly

I am trying to write a mathematical equation in jupyter notebook markdown, this equation have a Curly brace '{' symbole. I wrote this code : $$M=\begin{equation} \left\{ \begin{aligned} 2\,x&+3\,y&-4\,z&=&7\\ -x&+8\,y& &=&3\\ …