Questions tagged [simplification]

249 questions
1
vote
1 answer

Mesh simplification for regular surfaces except details

I need to prepare 3D mesh of car seat to further dynamic analysis. Because the mesh has high resolution it is necessity to make a simplification using one of the available options in MeshLab. What module I have to use to get the mesh with lower…
Jaumenik
  • 33
  • 6
1
vote
2 answers

Why Simplify[1/Sqrt[a] == Sqrt[1/a] doesn't give a "true" output in Mathematica?

In Mathematica, Simplify[1/Sqrt[a] == Sqrt[1/a]] gives Sqrt[1/a] == 1/Sqrt[a]. I don't really see why this doesn't give a true output when, FullSimplify gives the desired result. This probably is a very dumb question, but I just don't see it.
Wille Bell
  • 25
  • 3
1
vote
1 answer

How to fix my simplification function for power rule (to make results easier to read) for a working Symbolic differentiation function in Racket?

This is my function for differentiation that works correctly. #lang racket (define (diff x expr) (if (not (list? expr)) (if (equal? x expr) 1 0) (let ( (operation (car expr)) (u (cadr expr)) (v (caddr expr))) …
Royale_w_cheese
  • 297
  • 2
  • 9
1
vote
1 answer

How do you convert a string to a Sympy expression without simplifying?

I would like to use a function like sympify in order to convert the string "c+1+1" into a Sympy expression. However, I don't want it to simplify. Right now, I do from sympy import sympify print(sympify("c+1+1")) # >> c + 2 The docs mentioned…
Pro Q
  • 4,391
  • 4
  • 43
  • 92
1
vote
1 answer

Correlated row-generating query in Oracle

Given this starting CTE: WITH Sections AS ( SELECT 1 Section, 1 StartUnit, 5 EndUnit FROM DUAL UNION ALL SELECT 2, 0, 2 FROM DUAL UNION ALL SELECT 3, 1, 1 FROM DUAL ), How do I generate a result set that has as many rows per row in…
ErikE
  • 48,881
  • 23
  • 151
  • 196
1
vote
1 answer

cgal:surface simplification and keep texture map

I would like to use the surface simplification algorithm of CGAL with wavefront object. I can get a good result by using the edge_collapse function. But my 3D models have texture maps, I can't use the original texture map information for the reduced…
jmy
  • 11
  • 1
1
vote
1 answer

How to simplify terms with usage of square root in maxima

Let's say we have a term like 1/4 * x/sqrt(2) * x^2 / 2; in Maxima. As an output (without further modification) it gives x^3/2^(7/2). How can I force the output format to be like x^3/(8*sqrt(2)) with usage of square roots whenever possible?
Nico
  • 111
  • 2
1
vote
0 answers

What is the best algorithm for optimizing a procedurally generated indexed mesh with normals and UV maps?

I'm working with procedurally generated shapes that have UV mapping, normals, and vertices/indices. I've found a couple algorithms for optimizing and lowering the poly count of indexed meshes but none of them seem to take normals and UV maps into…
1
vote
2 answers

Python: Simplify a Counting Program

I'm very new to Python and I've made a program which asks a user to select 2 numbers. The first must be between 1 and 10 and the second must be between 100 and 200. The program then asks the user to select a 3rd number between 1 and 5. Call these…
Nellington
  • 211
  • 3
  • 12
1
vote
1 answer

Simplification of nested for loop

This code works, but I believe it can be made simpler, also allowing extra pieces to be included without all the hassle of adding lines to the nested loop. How? #--------------------------------------------------------------------------- …
egilk
  • 83
  • 1
  • 5
1
vote
1 answer

Boolean Simplification

I have a boolean simplification problem that's already been solved.. but I'm having a hard time understanding one basic thing about it.. the order in which it was solved. The problem is simplifying this equation: Y = ¬A¬B¬C + ¬AB¬C + A¬B¬C + A¬BC +…
Sam
  • 13
  • 2
1
vote
2 answers

Boolean Logic Simplification Issue

I hate this stuff. Just to note. + means OR * means AND ! means NOT. (A+B) * (A+C) * (!B + !C) (A | B) & (A | C) & (!B | !C) // more conventnal The answer is A(!B + !C) I'm trying to get there. So I start off with using Distributive rule which gets…
Doug
  • 1,316
  • 6
  • 19
  • 36
1
vote
3 answers

Correct usage of arrayfun/bsxfun in Matlab - simple example

Assume we have a 1-d Matrix, with random length: M = [102,4,12,6,8,3,4,65,23,43,111,4] Moreover I have a vector with values that are linked to the index of M: V = [1,5] What i want is a simple code of: counter = 1; NewM = zeros(length(V)*3,1); for…
Jonas
  • 308
  • 1
  • 11
1
vote
1 answer

Expression Simplification using SymPy trigsymp

Why does the following simple example not return 1? from sympy import * r, theta, phi = symbols('r, theta, phi') pprint(trigsimp(cos(phi)**2 * sin(theta)**2+sin(phi)**2 * sin(theta)**2 + cos(theta)**2)) Instead, I get 2 2 2 …
pawel_winzig
  • 902
  • 9
  • 28
1
vote
1 answer

Simplify expressions with nested ∃ and an equality

I came across a proof that I could not easily automate until I threw this lemma into Isabelle’s simplifier set: lemma ex_ex_eq_hint: "(∃x. (∃xs ys. x = f xs ys ∧ P xs ys) ∧ Q x) ⟷ (∃xs ys. Q (f xs ys) ∧ P xs ys)" by auto Now I am wondering:…
Joachim Breitner
  • 25,395
  • 6
  • 78
  • 139