Tag Info

Accepted

How to convert number systems on Sharp calculator if the number has decimal points, for example 3B.254?

If the calculator supports converting integers to another base, you can always multiply your number with the base N times (with it's base) to obtain a integer, convert, then divide. Note: This assumes ...
• 928

AMR-Capable meshing software that is not based on quad/octrees

deal.II can subdivide cells in ways that are not geometrically 2:1, but "graded" in certain directions. It does this by "mapping" the new mid-points of edges and cells in non-...
• 54.9k

Can I find sines or cosines of rational parts of π without using radians? If not, how do I reduce the errors caused solely by the transcendence of π?

Nothing you ever compute on computers is exact. As has been pointed out in a comment, it isn't about transcendental numbers: $(11/9)/(11/3)=3$ in exact arithmetic, but not in floating point arithmetic....
• 54.9k
Accepted

Issues with Simulating the Orbits of Mars and Earth using MATLAB and Runge-Kutta Method

You accidentally divided by the planet's mass twice. The force exerted by the sun on the planet is $$\vec{F} = -\frac{G M_s m_p}{\|r\|^3} \vec{r}$$ Plugging that in to the equation of motion for the ...
• 2,484

Good IDE for GNU Octave?

QtOctave (source1, source2) among many others like OctaveOnline, Jupyter Notebook, Emacs, Sublime Text, VS Code, etc. support Octave code editing, syntax highlighting, and more. ...

Rolling friction settings in COMMERCIAL (Ansys) finite element software

To be more precise, you do not implement rolling friction in finite element but you can model rolling friction. Rolling friction is the consequence of several lower level phenomena that can be ...
• 354

Research profile vs coding expertise for scientific programming career

Why not both? In practice there are people lying in the spectrum between a research-centric career and "programming-centric" career. In the past decade this has been recognized and these ...
• 47
Accepted

1 dimensional simulation of gravity fails

what is wrong with the simulation ? Your problem is that you are using the Euler method to derive your numerical solution. Although this method is simple to implement, it is inaccurate and unstable. ...
• 136
Accepted

Best approach to simulating dynamics on networks

I assume that your networks are sparse (most entries of the adjacency matrix are zero) and irregular (no grids and similar repeating structures). As an example, let’s look at an ODE: $\dot{x} = f(x).$ ...
• 2,032
1 vote
Accepted

Can I find sines or cosines of rational parts of π without using radians? If not, how do I reduce the errors caused solely by the transcendence of π?

The standard libraries of most programming languages have a function cospi that computes $x \mapsto \cos(\pi x)$. Would that solve your problem? Otherwise I am ...
• 11.3k

Only top scored, non community-wiki answers of a minimum length are eligible