A
A
Alexey Polyakov2016-04-23 09:55:20
Programming
Alexey Polyakov, 2016-04-23 09:55:20

Choosing a programming language for solving a problem?

Good afternoon,
There is a task from geometric figures with a set of properties (side ratios, minimum / maximum area, location relative to other figures) to make a common figure and back adjust the size of the original figures and their relative position.
As far as I understand, there is a mathematical analysis for calculations and a suitable programming language is required to endow each figure with a set of properties. There can be many properties and dependencies for each shape. Tell me, on what basis to start developing algorithms and code?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Mirilaczvili, 2016-04-23
@Stilist

If only for modeling with subsequent visualization of the results, then Octave / MATLAB. There is a large database of ready-made algorithms.
If you need a standalone program with a GUI/text interface, there are many calculation packages for Python too.
Well, classic - Fortran. Although these days it is no longer as popular as two decades ago.
I’ll also add two now popular general-purpose languages: Java, C#.

And in what language can you define an object (in my case, a geometric figure) and then add conditions to it: a connection with other objects that, as satellites, should be placed side by side (like the Moon relative to the earth, planet relative to the sun), add dimensions, mass, color, determine the object's sides for which to assign textures? Does it need to be developed all over again or is there a ready-made API to work with geometry and mathematical dependencies between them, and then also visualize it in high quality?
In the simplest case, when inheritance is not required, the object can be a (data)/record structure (called differently in different languages). But usually in OOP languages, a class/object (also called differently) is used for this purpose.
Figuratively speaking, we are talking about a tool that, in an automated form, taking into account predefined dependencies (the number of objects, their preferred connections) and some random selection, will generate a system where all objects are interconnected with others and change when the initial data changes.
Such a magical tool has to be created by yourself.
To build the logical part of the program, you can use the visual language DRAKON , for which there are several implementations of tools. Some of them allow you to automatically translate the DRAKON schema into source code.
But DRAKON has nothing to do with UML notation. Perhaps just some UML builders will be able to generate code with links based on a UML link diagram.

A
Alexey Sergeev, 2016-04-23
@SergeevAI

Everything related to mathematics - Python.

K
Kolya K, 2016-04-23
@Kolyagrozamorey

Write in what you know best, this can be done in almost any language

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question