Questions tagged [simplification]

249 questions
2
votes
1 answer

Boolean simplification with some known term combinations

I am doing boolean simplification using Quine-McCluskey which works well. However, I now need to perform the simplification with some known term combinations. For example, I want to simplify: (A+B)C If I know that: A+B == true then this simplifies…
Chris
  • 1,685
  • 10
  • 15
2
votes
3 answers

Simplifying a fraction with sums of polynomials in the numerator

I'm trying to simplifying the following in maxima: (6*C*b3m*ω+(8*%i*R0^3*b^3-24*%i*R0^3*a*b^2+24*%i*R0^3*a^2*b-8*%i*R0^3*a^3)*Γ+3*A*E*a3p*k+2*%i*K*b3m)/(6*C*ω+3*A*E*k+2*%i*K) So far, here's what I get : But I can easily see that the quantity in…
2
votes
3 answers

jQuery - how to reduce repitition

I realise this is a pretty basic question but as a designer and copy-paste jQuery-ist I am not sure of the standard methods one might use - its obvious that due to repetition this could be done with less verbiage. What is a good way to do this. Any…
ganoobi
  • 41
  • 4
2
votes
2 answers

How can I convince Sympy to come to the same simplification SAINT does for the 1961 MIT undergrad calculus problem?

The program for James R Slagle's MIT thesis A heuristic program that solves symbolic integration problems in freshman calculus, symbolic automatic integrator (SAINT) is famous(ish) for being the first practical "expert system" symbolic integrator…
ti7
  • 16,375
  • 6
  • 40
  • 68
2
votes
0 answers

Re-assembling polygons after running CGAL's split_graph_into_polylines()

In order to simplify multipolygons in CGAL, including their shared boundaries, I followed the instructions as answered in my previous question. So, I start out with polygons, but iterate through the polygons and add their coordinates to a…
fillmoon
  • 85
  • 1
  • 4
2
votes
1 answer

Is there any way to get CGAL's polyline simplification to work for inner/shared boundaries?

I've been trying to carry out line simplification on polygons belonging to maps with the help of this CGAL guide, e.g. South Korea. This is a screenshot of South Korea after line simplification with CGAL. I carried out the line simplification by…
fillmoon
  • 85
  • 1
  • 4
2
votes
1 answer

Maxima. How to prevent degree calculations

Is it possible for all calculations in the expression for numbers in a power to be prevented? Perhaps by pre-processing the expression or adding tellsimp rules? Or some other way? For example, to distrib (10 ^ 10 * (x + 1)); which…
2
votes
1 answer

Simplifying Boolean algebra expression with two brackets

Could someone please show me how to get the answer? The correct answer is c): Simplify the following Boolean algebraic expressions (where ’ means not): A.B’ + A.(B + C)’ + B.(B + C)’ a) B.C’ b) B + C c) A.B’ d) A + B’ e) None of the above
Reix
  • 37
  • 9
2
votes
3 answers

Perl Regular Expression simplification

I want to simplify the following statement. if($_=~/^([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])/) Is there an alternate way I can write the above statement without repeating [0-9a-fA-F] n times ?
Jean
  • 21,665
  • 24
  • 69
  • 119
2
votes
1 answer

Simplifying Sympy expressions as implicit functions of variables

I am wondering if there is any way to simplify Sympy expressions by rewriting the expression in terms of an already defined variable, making Python collect the terms fitting with that variable's definition. Thanks in advance.
2
votes
1 answer

Collecting rationals with sympy collect_const

Sympy (ver. 1.1.1) documentation of collect_const says that using the Numbers=False option, "no Float or Rational will be collected". This makes you think that rationals are normally collected by collect_const, but they don't seem to be: >>> from…
mmj
  • 5,514
  • 2
  • 44
  • 51
2
votes
1 answer

Logic to simplify item replacement chain

I have some items that are being replaced by other items hence creating a replacement chain as: +---------------+------------------+ | Replaced Item | Replacement Item | +---------------+------------------+ | A | B | | B …
2
votes
0 answers

How to optimize the following symbolic expression in sympy

I want to simplify a computation based on C, and D using sympy. However, I dont know how to simplify/subs,... C*DT by G. For instance, C(i,0)*DT(0,j)+C(i,1)*DT(1,j) must be replaced by G(i,j), i.e., G=C*DT. This replacement must be applied as much…
remo
  • 880
  • 2
  • 14
  • 32
2
votes
1 answer

Boolean Algebra simplification (3 inputs)

I may need your help with this quite simple thing: This -> abc' + ab'c + a'bc + abc can (I guess) be simplified to this -> ab+ac+bc. But how in the world is this done with Boolean algebra? I already reduced it to -> abc'+ab'c+bc by using the…
AudioGuy
  • 413
  • 5
  • 18
2
votes
2 answers

Simplifying an if statement

I have a working solution for a problem found here. After writing it, I noticed I have the exact same statement in both parts of the if/else: public boolean groupSum6(int start, int[] nums, int target) { if(start >= nums.length) return target ==…
Daiwik Daarun
  • 3,804
  • 7
  • 33
  • 60