Jump to content

Quick LaTeX Tutorial


Dave

Recommended Posts

  • 2 weeks later...

I had a thread a while ago and I was wondering if there are latex symbols for the long division and perhaps extension code for working out the problem..

 

I would dislike using the square root symbol for this, but it seems like the next closest thing. I don't like using the

 

$12/24$ type of stuff that gives a number over a line and a bottom number under that line.

 

Arg, too many different BBSs have different latex systems.

worked.JPG

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

When I need to write mathematical expressions on my computer for personal use I come to these forums and write it in latex then hit preview and save the image to my computer. This is quite annoying and unconventional, is there a program I can download that either generates latex images or has a complete UI for writing such expressions?

 

Thankyou.

Link to comment
Share on other sites

I agree with Dave that the most sensible thing to do is install LaTeX on your system. But if you really don't want to do that you'll need a LaTeX emulator like mimeTeX.

 

Assuming that you are using Windows, then download mimetex.exe from there. You can then call mimetex from the DOS command line, but the simplest thing to do is write a batch file:

@echo off
mimetex -f mimetemp.tex -e mimetemp.gif

Save your latex code in mimetemp.tex, run the batch file and the image will appear as mimetemp.gif.

Link to comment
Share on other sites

  • 2 weeks later...

just testing this out...

 

[math]\frac{x^2 + 4x}{2y^2 + y} = 6[/math]

 

Derivative:

 

[math]\frac{(2x + 4)\cdot(2y^2 + y) - (x^2 + 4x)\cdot(2\frac{dy}{dx} + 1)}{(2y^2 + y)^2} = 0[/math]

 

[math]\frac{(4xy^2 + 2xy + 4xy^2 + 4xy) - (2x^2\frac{dy}{dx} + x^2 + 4x\frac{dy}{dx} + 4x)}{(2y^2 + y)^2} = 0[/math]

 

[math]\frac{8xy^2 + 6xy - x^2 - 4x}{(2y^2 + y)^2} + \frac{-2x^2\frac{dy}{dx} - 4x\frac{dy}{dx}}{(2y^2 + y)^2} = 0[/math]

 

[math]\frac{dy}{dx} = \frac{8xy^2 + 6xy - x^2 - 4x}{-2x^2 - 4x}[/math]

 

now hopefully that will work out fine...

Also if any math is wrong please tell me lol

 

the language to use is easy just going through it all is hard lol

Link to comment
Share on other sites

It would be easier to say

[math]\frac{x^2 + 4x}{2y^2 + y} = 6 \implies x^2+4x=6\left(2y^2+y \right)[/math]

 

Hence

[math]2x+4=6\left(4y\frac{dy}{dx}+\frac{dy}{dx}\right)=6\frac{dy}{dx}(4y+1)[/math]

 

So [math]\frac{dy}{dx}=\frac{2x+4}{6(4y+1)}[/math]

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

What's wrong why can't I see a formula here?

This is generated with matlab 6.5, command Latex(S).

[math]-\sin(\left({\it Patm}\,t-\arctan({\frac {{\it Pstart}}{\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}}})\sqrt {{\it Kv}}{\it Volume}\right){\frac {1}{\sqrt {{\it Kv}}}}{{\it Volume}}^{-1}){\it Pin}\,\cos(\left({\it Patm}\,t-\arctan({\frac {{\it Pstart}}{\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}}})\sqrt {{\it Kv}}{\it Volume}\right){\frac {1}{\sqrt {{\it Kv}}}}{{\it Volume}}^{-1})\sqrt {{{\it Pin}}^{2}{\it Kv}\,\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}\left (-2\,\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pstart}}^{2}\left (\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\right )^{2}+\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pin}}^{2}\left (\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\right )^{2}-2\,{{\it Pstart}}^{3}\sin({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})+2\,{\it Pstart}\,\sin({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}}){{\it Pin}}^{2}\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})+\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pstart}}^{2}\right )^{-1}}{\frac {1}{\sqrt {{\it Kv}}}}[/math]

 

-\sin(\left({\it Patm}\,t-\arctan({\frac {{\it Pstart}}{\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}}})\sqrt {{\it Kv}}{\it Volume}\right){\frac {1}{\sqrt {{\it Kv}}}}{{\it Volume}}^{-1}){\it Pin}\,\cos(\left({\it Patm}\,t-\arctan({\frac {{\it Pstart}}{\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}}})\sqrt {{\it Kv}}{\it Volume}\right){\frac {1}{\sqrt {{\it Kv}}}}{{\it Volume}}^{-1})\sqrt {{{\it Pin}}^{2}{\it Kv}\,\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}\left (-2\,\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pstart}}^{2}\left (\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\right )^{2}+\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pin}}^{2}\left (\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\right )^{2}-2\,{{\it Pstart}}^{3}\sin({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})+2\,{\it Pstart}\,\sin({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}}){{\it Pin}}^{2}\cos({\frac {{\it Patm}\,t}{\sqrt {{\it Kv}}{\it Volume}}})+\sqrt {-{{\it Pstart}}^{2}+{{\it Pin}}^{2}}{{\it Pstart}}^{2}\right )^{-1}}{\frac {1}{\sqrt {{\it Kv}}}}

 

 

 

Edit:

OK, found the error. In which program can I make a pretty formula based on this latex?

There is a pretty command in matlab but it's not graphical.

Link to comment
Share on other sites

surely the warning that the string is too long explains why it won't work on this forum.

 

If you want to see it just latex it at home using your installation of latex. This is freely available for all *nix platforms, windows, mac OSX, and probably many more besides. just download the relevant version and enjoy. use google to find it.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Hey Dave, can you tell me if this is a bug?

 

Sometimes I get a restricted command error even when its text and not a command, name for example triggers error even if its not preceded by a slash... any ideas?

 

Cheers,

 

Ryan Jones

Link to comment
Share on other sites

  • Dave unpinned this topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.