Questions tagged [simplification]

249 questions
0
votes
0 answers

PS::Simplification with 3d points

Im trying to simplify 3d polylines using CGAL::Simplify, is a terrain so the elevation does not matter for the simplification but I need to carry them because I need them on simplified polylines. The polylines can be open or closed (polygon). The…
Rabelo
  • 57
  • 4
0
votes
1 answer

Remove rows until columns are identical over multiple data frames

I have 4 data frames named w, x, y, z each with 3 columns and identical column names. I now execute an operation that removes rows until the column named Type is identical over all four data frames. To achieve this I am using a while loop with the…
Connor Uhl
  • 75
  • 1
  • 9
0
votes
1 answer

maple - Can you simplify an expression in terms of pre defined variables?

I have some particular dimensionless numbers commonly used in fluid mechanics. I want to express a certain expression in terms of these variables. If I define my dimensionless numbers and then do simplify(*expression*) where the expression is a…
0
votes
0 answers

Simplification of constant-only Add-instances, but including radicals, using Sage and sympy

I'm in the process of developing simple functions that generate constants for various filters of various orders, such as Butterworth. For example, the result of Butterworth(2) would be: s^2 + sqrt(2)*s + 1 (Darn the administrators for not choosing…
jonk
  • 225
  • 4
  • 11
0
votes
1 answer

What is the proper way to simplfy the expression 'x' plus 'x' in MATLAB?

I have a very simple question: I'm trying to simplify the expression x + x to get the answer 2x in MATLAB but I'm having a hard time figuring out the proper format and I don't know what to search in the documentation files for an answer.
user800786
0
votes
1 answer

need to simplify a complex date

I have about 200,000 records that have dates as text in this format: Monday, March 01, 2018 and need to be converted to this format: 03-01-2018. A solution using XL or R would work. The key here is that the final text needs to be able to be used…
xtufer
  • 149
  • 8
0
votes
1 answer

sympy how to simplify expressions with a variable as exponent

I have an expression like this one: 4^k/(12^k*A+4^k*B) Python code is: import sympy as sy k,A,B=sy.symbols('k A B',real=True) C=sy.Rational(4)**k/(sy.Rational(12)**k*A+sy.Rational(4)**k*B) Is there any SymPy function able to simplify the…
Fabrizio
  • 91
  • 1
  • 6
0
votes
1 answer

Simplify the division of Normals cumulatives functions

I'm struggling on how I can simplify the quotient of two normal probability functions in R. Actually, I'm calculating a conditional skew-Normal density, them I have the division between this two…
DR15
  • 647
  • 9
  • 17
0
votes
1 answer

Find simplified square root in Kotlin

I would like to take a number like 96, call squareRoot(96), and get a return of "4√6". I have tried many different versions of generating a list of the prime factors finding the perfect divisors using recursive implementations iterative…
Sam
  • 261
  • 2
  • 11
0
votes
1 answer

python sympy How do I simplify an expression where I know that a certain variable is an odd integer

Given, for example, the expression (3*cos(pi*n/2)+2*sin(pi*n/2))/n**2 and the knowledge that n is a positive odd integer (ie 1,3,5,...), the expression could simplify to 2*(-1)**((n-1)/2)/n**2 because the cos(pi*n/2) terms all go to zero, and the…
0
votes
1 answer

How to simplify the following expression using boolean algebra?

How to simplify the following expression using boolean algebra? a[b'c+ (b+c')'](a'b+c)
0
votes
1 answer

Simplifying long CSS selectors

I have the following CSS selector: #AllContextMenus :not(.menu-iconic-left):not(.menu-accel):not(.menu-accel-left):not(.menu-accel-container):not(.menu-accel-container-left):not(.menu-iconic-accel):not(.menu-right)::before For readability purposes,…
0
votes
1 answer

Simplification - changing 2 cells at once

I am trying to figure out how to simplify the code with no luck. I managed to build a working code, which does the following: 1. If 'ja' is filled into cell 34 - in cell 35 the date appears - in cell 36 the username appears 2. If the cell is empty,…
Roeland
  • 3
  • 1
0
votes
6 answers

improve and simplify css with php parser

I want to improve css syntax in several ways such as: defining variables link-color1 = #fff mathematical computing width:500-3-2 this seemy stupid but with variables: width: container - inner - 3px; style extending #foo{background:#ddd;color:#eee;}…
Gergely Fehérvári
  • 7,811
  • 6
  • 47
  • 74
0
votes
1 answer

How to simplify Sign'

How can I force Mathematica to simplify the derivative of Sign? The following FullSimplify[D[Sign[x], x], x > 0] does not work. All it produces is Sign'[x] (On the other hand, FullSimplify[D[Abs[x], x], x > 0] goes through.)
sevec
  • 31
  • 1
  • 4