Форум программистов, компьютерный форум, киберфорум
IGPIGP
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск  

About an easily math formula in Latex typing)

Запись от IGPIGP размещена 03.05.2015 в 15:57
Показов 6544 Комментарии 0

Не по теме:

The Russian version of that a page is there:
https://www.cyberforum.ru/blog... g3523.html


  • You can learn about the Latex math formula format by typing in a search engine "math latex", "latex formula" and so on. Typing a line from one word "latex" is also interesting, but there is not about mathematics.
    In a nutshell it can be explained as follows: today there are many sites and publishing application where when you type something like:
    [LATEX]f_p =4\cdot \pi \cdot (\frac{1}{2\cdot \pi \cdot m _{1}\cdot k _{0}\cdot T})^{\frac{3}{2}}\cdot p^{2}\cdot e^{-\frac{p^{2}}{2\cdot m _{1}\cdot k _{0}\cdot T}}[/LATEX]
    the site or program will render:
    https://www.cyberforum.ru/cgi-bin/latex.cgi?f_p =4\cdot \pi \cdot (\frac{1}{2\cdot \pi \cdot m _{1}\cdot k _{0}\cdot T})^{\frac{3}{2}}\cdot p^{2}\cdot e^{-\frac{p^{2}}{2\cdot m _{1}\cdot k _{0}\cdot T}}
    That is difficult to type a formula manually for a beginner. But it needs to be done, otherwise productive communication on the forum is impossible.
    In addition, having the rendered formula image, you can make screenshot to use that image in other document.
    For more information, look on the network.
  • As it has been said, a set of formula in Latex format is quite a complicated thing. Despite the fact that it is written a lot of programs that somehow facilitate this work, they all boil down to work with an extensive menu, where each item assigned to the entire line, corresponding to a mathematical structure.
  • I want to offer a program that allows you to write formulas in format RTF, and the program itself generates the Latex string by the specified RTF string. At first glance, it seems difficult. However, out of it, the decision is the result of long-term thinking, trial and error.
  • So why RTF first? This format allows to obtain quite satisfactory visual representation of the formula. Its features allow you to maintain a multi-level recording and lower indices. Therefore, all but the natural, multilevel fractions can be displayed without any special tricks. Fractions are displayed with a "slash" - division and additional brackets, if the numerator and/or denominator of complex expressions: (a + b) / (c-d).
    But the main factor is of course the fact that a set of RTF text can be made very easy. You enter it as plain text in a special box, and the conversion to RTF program does. With this you can see the result at every step of your work in the form which is acceptable to the mathematical expression. This makes the set of formula very easy comparing to all existing ways.
    Than the program uses RTF string to generate the latex string. But you have the RTF string as an independent additional result to use it everywere the RTF text may be used.
  • But why, after all Latex? Yes, we already have quite readable RTF-formula, but it would be desirable natural display fractions and getting rid of extra brackets that are so difficult to perception. Here also need Latex. Why is that? Because it is already existing and proven coding technology to display the formulas in their natural form.
  • The program is good even to start. It is easy to learn (it proved at work with seventh graders) and quite convenient. The program includes everything that deserves attention is provided clues windows that are opened by the mouse right-clicking + LShift button pressed. There's a decent HELP. Simple rules of the interface, and in particular RTF (RTF - language interface in this case)) for explaining an example of input two formulas, where step by step and "click by click" is explaned what to do and what is the result.
Download here:
http://steamandwater.od.ua/AnEasyCalc/index.html

  • You can read the content of the Help menu to familiarize with the principles of the program. The fastest way - just run two examples are located:
    Menu Help-> Help->Typing the RTF formula. In a few minutes you'll see everything you need to start working independently.
    Look at there:
    http://steamandwater.od.ua/AnE... syCalc.wmv
  • I want to show some small tweaks to display fractions. This is implemented in version 1.0.0.3
  • Let's as simple as typing the expression: a / b · d / c .
    Following the rules of operator precedence is equivalent to: a · d / (b · c) or a · d / b / c. Operation of equal priority performed strongly right to left. So our record a / b · d / c generates a Latex string:
    \frac{a\cdot d}{b\cdot c}
    and it generates image shot where a · d is the numerator and b · c - denominator :
    https://www.cyberforum.ru/cgi-bin/latex.cgi?\frac{a\cdot d}{b\cdot c}
  • Now let shall find: (a / b) · d / c. Additional brackets do not change the order of operations, and the calculation result will not change. But this line will generate another Latex string:
    \frac{\frac{a}{b}\cdot d}{c}
    and it generates image shot where a / b · d is the numerator, and c - the denominator:
    https://www.cyberforum.ru/cgi-bin/latex.cgi?\frac{\frac{a}{b}\cdot d}{c}
  • Let shall find: (a / b) · (d / c) and this parentheses placement will not change the of result of the calculation. But the record will generate Latex string:
    \frac{a}{b}\cdot \frac{d}{c}
    and it generates drawing the product of two fractions: a / b and d /c :
    https://www.cyberforum.ru/cgi-bin/latex.cgi?\frac{a}{b}\cdot \frac{d}{c}
  • Variants a / (b · d / c) and a / (b · d) / c do not consider as they are not equivalent to the original expression :
    a / b · d / c
  • And the expression: a / b · (d / c) deserves attention. It generates:
    \frac{a\cdot \frac{d}{c}}{b}
    that will be shown as a fraction which numerator is a multiplied by the fraction d / c and denominator d :
    https://www.cyberforum.ru/cgi-bin/latex.cgi?\frac{a\cdot \frac{d}{c}}{b}
  • Thus the additional brackets that do not change the result of the expression can change its Latex view in the program. Understanding this you can make such a view as you need.
  • Now let's talk about such things as accuracy, reliability and associativity.
    In school mathematics, we were taught that the operation of equal priority can be performed from left to right as their result does not depend on the order of execution. Such an algorithm is called a naive implementation.
    In the program AnEasyCalc is implemented the inclusion of intelligent algorithm that selects the most safe operation from the current an equal priority operations sequence before the execution, in terms of loss of relevance (accuracy), and the possibility of accidental results (infinity, not a number).
    A description of what is an intelligent algorithm can be seen by right-clicking on the menu item located:
    Options->Calculation mode options->An operations priority->An intelligent algorithm.
    Here is what can be read in the pop up help window:
    The naive algorithm assumes the sequence of operations equal priority: Left-to-right for all but the exponentiation. This leads to the fact that such expression:
    1 + 1e-20 - 1 equals 0.
    This is because the naive algorithm performs the addition operation from left to right and:
    1 + 1е-20 = 1, since usually the number of significant digits does not more than 15, as a rule.

    And the next operation:
    1-1=0.
    That means, there is a loss of accuracy. However, there may be more serious consequences. For example:
    1e308 * 1e308 / 1e308 in accordance with the naive algorithm equals infinite, as modern desktop systems, as a rule, can not work with numbers larger than numbers with exponent +308.
    An intelligent algorithm gives the correct results:
    1 + 1e-20 - 1 = 1e-20 without the loss of accuracy
    and
    1e308 * 1e308 / 1e308 = 1e308 with no such a bad accident type as "overflow".
    This is possible due to the fact that an intelligent algorithm first analyzes the expression, and selects the most safe operation from the current an equal priority operations sequence after that only.
    Logically, an intelligent algorithm is more reliable and accurate, but slower than the naive algorithm.
    You can select an each or an other one. Moreover, you can even select an each and than an other algorithm to compare their results when you need to be sure that the naive algorithm does not lie in your math expression. In this case, the comparison of the expression trees visualization result will show the point where an error or an accident is appeared.
  • News that will please both beginners and advanced Windows users. Now you can download not only the AnEasyCalc program but also absolutely free LaTeX viewer AnEasyLaTeXViewLT at the html page specified above. It will help to render LaTeX string on a local computer.
Размещено в Без категории
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
Всего комментариев 0
Комментарии
 
Новые блоги и статьи
Саморегулирующийся социальный контракт для сервера cross-section.
Hrethgir 14.08.2026
С кодом конечно таких глубоких размышлений пока не было, впрочем я уже привык к алгоритмизации. Суть предмета записи: снова в диалоге с нейросетью (я взял пока себе ник для учётки админа - Rector). . . .
Часы электронные
Uhbif79 12.08.2026
Выкладываю программу часов. Программа позволяет: 1. Использовать системное время и дату, 2. Есть возможность вводить время и дату вручную. 3. Реализованы 2 будильника: начало и конец рабочего дня. . . .
Часы с будильником на основе класса QLCDNumber
Uhbif79 12.08.2026
Всем добрый день, выкладываю программу часов с будильником на основе класса QLCDNumber. Здесь я пробовал самостоятельно создавал классы, впервые столкнулся с видимостью переменной одного класса из. . .
Установка MinGW GCC 16.2 и CMake
8Observer8 10.08.2026
VK Видео: https:/ / vkvideo. ru/ video-240781534_456239017 YouTube: eY5-5PyI9NM Текстовая версия
Неделя из жизни имитационной модели склада: мои кривые руки растут, откуда надо
anaschu 10.08.2026
Неделя из жизни имитационной модели склада: как я почти написал неправильную логику и что с этим делать Работаю сейчас над учебно-рабочим проектом: строю в AnyLogic имитационную модель процессов. . .
Калькулятор для расчета родства
russiannick 07.08.2026
1. Задача: Создать калькулятор для расчета родства. Родственных связей существует 8 ступеней, такие как: p - отец P - мать q - муж Q - жена b - брат B - сестра s - сын S - дочь
Мир по моей воле
kumehtar 07.08.2026
Когда-то кажется, что всё просто. Ты весь такой светлый. Причиняешь добро. Борешься за справедливость в этом тёмном мире. Потом начинаешь замечать одну неприятную вещь. Почти каждый хороший. . .
Кредитный калькулятор
Maks 05.08.2026
Решение задачи по прикладной информатике средствами 1С. Задача: Напишите приложение-калькулятор, которое помогает рассчитывать параметры кредита для аннуитетного и дифференцированного видов. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru