Friday, 15 February 2013

java - Is there any Programming language that can directly execute MathType Formula? -



java - Is there any Programming language that can directly execute MathType Formula? -

let's take illustration of java. rich text ide never found now, , plain-text ide mainstream.

i have read many times latex formula in ide codes github , it's hard understand symbols without help of tex-like software.

i envision birth of such ide can integrate word, onenote, etc., codes class can highlighted, re-create paste image while editted plain/rich html, multimedia objects can used explanations, matlab helper not plain javadoc, can compared 2 or more classes in multi-column in 1 file in 1 time, great view of java class hierarchy, onenote can do, can rid of limit codes can written in 1 column in plain text editor. frankly, onenote not ide real rich text ide prototype, contains intuitiveness of writing/ordering such codes run codes, however, these features patent can seen in onenote, , can not found in famous or less programming environment. can not help recalling, historically, development of width of rail tracks limits size of imagination, repeats in brain each time utilize onenote.

what's more, although many ide contains highlight grammar, still plain-text code, can generated fast rich text 1 removing explanation areas.

the mathtype-like formula much improve plan-text formula in plain text ide, can sense in onenote pasting codes , formula together, when fraction or rooting formula. pity, formula can not run directly. actually, can generated same format, namely xml-like rich text.

i found 1 interesting piece of such code in pdf file unicode website, much improve capture real function of programme function:

class="snippet-code-js lang-js prettyprint-override">void ihbmwm(void) { gammap = gamma*sqrt(1 + i2); upsilon = cmplx(gamma+gamma1, delta); alphainc = alpha0*(1-(gamma*gamma*i2/gammap)/(gammap + upsilon)); if (!gamma1 && fabs(delta*t1) < 0.01) alphacoh = -half*alpha0*i2*pow(gamma/gammap, 3); else { gamma = 1/t1 + gamma1; i2sf = (i2/t1)/cmplx(gamma, delta); betap2 = upsilon*(upsilon + gamma*i2sf); beta = sqrt(betap2); alphacoh = 0.5*gamma*alpha0*(i2sf*(gamma + upsilon)/(gammap*gammap – betap2))*((1+gamma/beta)*(beta – upsilon)/(beta + upsilon)- (1+gamma/gammap)*(gammap – upsilon)/(gammap + upsilon)); } alpha1 = alphainc + alphacoh; }

class="snippet-code-js lang-js prettyprint-override">void ihbmwm(void) { 𝛿 = 𝛿 • (1 + 𝐼 2); 𝜐 = 𝛿 + 𝛿 1 + 𝑖 • Δ ; 𝛽 _inc = 𝛽 0 • (1 − (𝛿 • 𝛿 • 𝐼 2/𝛿 ’ )/(𝛿 ’ + 𝜐 )); if (! 𝛿 1|| fabs(Δ • 𝑈 1) < 0.01) 𝛽 _coh = − .5 • 𝛽 0 • 𝐼 2 • pow(𝛿 /𝛿 ’ , 3); else { 𝛤 = 1/𝑈 1+ 𝛿 1; 𝐼 2ℱ = (𝐼 2/𝑈 1)/(Γ + 𝑖 • Δ ); 𝛾 2= 𝜐 • (𝜐 + 𝛿 • 𝐼 2ℱ ); 𝛾 = 𝛾 2; 𝛽 coh= .5 • 𝛿 • 𝛽 0 • (𝐼 2ℱ (𝛿 + 𝜐 )/(𝛿 ’ • 𝛿 ’ − 𝛾 2))× ((1 + 𝛿 /𝛾 ) • (𝛾 − 𝜐 )/(𝛾 + 𝜐 ) − (1 + 𝛿 /𝛿 ’ ) • (𝛿 ’ − 𝜐 )/(𝛿 ’ + 𝜐 )); } 𝛽 1= 𝛽 inc+ 𝛽 coh; }

the length of 2 above longer 3rd one.

if can not see 3rd in image, please visit original pdf here, page 33 35.

a little question is, should such habit of plain text programming still thought 1 after such ide come being? high level programming language stuck prejudice of beingness satisfied plain text coding while helper multimedia.the varients/constants ascii-like, while unicode sets partially supported. , elegent in mathtype-like formula read , utilize in brain, while impossible subscript index read in textbook in ide , programming languages java still need brackets.

the final question is whether such ide or programming language can run mathtype-like formula or code math exist or not?

ps: know executing order in mathtype formula can result in low effciency when loops exist, but, not problem, programmer, can manually seperate these polynomials fragments , add together them in loops, machine can facilitate them, too.

ps2: mathematica great math researchers around science community, despites high price. seek download , utilize , attracted simplicity-like interface , notation system, such many games can implemented much fewer lines , helper human-friendly , intelligent, input method! , helper able run codes, definate improvement , next generation larn programming, maybe not mathematica language.

firstly, concept "notebook" in mathematica ultimate code editor can find now, can utilize mathtype-like components in representng algorithms , valuable adopt such concept other programming languages or plain-text ides, because mathematica has own limits such lack of existent features in other language important.

i can not help recalling traditional way of command line programming in windows or linux in lastly century, not much different plain-text ide programming nowadays. way, mathematica workbench specified version of eclipse ide not able code in mathematica "notebook" way, pity now.

reading others' codes much more hard writing codes, of algorithms, , codes write hard read in future both me , others, if there not way display mathtype-like symbols in rich text ide mathematica can do, running symbols thing.

secondly, in "notebook", components can not arranged freely in onenote way, width infinity means real infinity in onenote, can paste right side far first column filled rich text in onenote , can viewed using horizontal scroll bar. obvious benefit of feature umlimited comparing 2 or more codes same parent class or algorithm variants, guess useful version controlling, continious scrolling of horizontally comparing 10 files in beyondcompare without vertical scroll bars of each lastly one, 1*n matrix of classes, not 1 column.

maybe several years later, features mensioned can realized in mathematica, too.

i heard "source code documentation" old sayings, not yet reality @ all.

maybe not mathtype exactly, mathematica ide allows perform symbolic programming fancy mathematical symbols. "successor", wolfram language, should able , more.

the problem quite expensive. there 30-day trial version might check if suits needs.

java ide programming-languages rich-text-editor mathtype

No comments:

Post a Comment