How can I automatically display a string like for example this:
zad<-"2x+5y-2z+2p=9; 3x-2y+1z-3p=34; -3x+3y+2z+4p=33; 2x+3y+4z+5p=125"
as a set of linear equations in a curly bracket (in R-markdown)? Something like in the picture, but it should automatically work after we make changes in the zad string:
We can define the equation as an expression
in a code junk, then in latex code we can refer to it:
---
title: "Untitled"
author: "you"
date: "19 Februar 2018"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r equation}
eq <- noquote(paste(expression("2x+5y-2z+2p=9\\\\3x-2y+1z-3p=34\\\\-3x+3y+2z+4p=33\\\\2x+3y+4z+5p=125")))
```
$$
\begin{cases} `r eq` \end{cases}
$$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With