Questions tagged [equations]

194 questions
4
votes
3 answers

generating equation representations in python/on the web

Is it possible to take something like x^2+5 and have it generate this: https://i.stack.imgur.com/a0f8Q.gif I'll be using Python so anything based in Python would work, but I'm open to other solutions such as latex output.
tipu
  • 9,464
  • 15
  • 65
  • 98
4
votes
2 answers

How to solve Exact Differential Equations in MatLab?

(3x^2+4xy)dx+(2x^2+2y)dy=0 I solve this equation on paper like that: The Result must be: f(x,y)=x^3+2x^y+y^2=c-c_1 I want to find f(x,y) function in Matlab. I tried to find it using dsolve command. dsolve ('(2*x^2+2*y)*dy=-(3x^2+4xy)',…
RedLEON
  • 281
  • 2
  • 7
  • 19
3
votes
2 answers

Solving a difficult (polynomial?) equation in Python

I am new to programming (Python is my first language) but I love to design algorithms. I am currently working on a system of equations (integers) and I cannot find any references to solving my particular problem. Let me explain. I have an equation…
3
votes
3 answers

C API Library for Solving Sparse Systems of Linear Equations?

I need to solve a large, sparse system of linear equations from a program written in D. Ideally I'd like a library with a D-style interface, but I doubt one exists. However, D can directly access C APIs. Therefore, please suggest some libraries…
dsimcha
  • 67,514
  • 53
  • 213
  • 334
3
votes
2 answers

Pygame bullet motion from point A to point B

I am trying to make a game with a python library called 'Pygame' (v1.9.2) and I have made a character for the player. This character is supposed to "shoot" "bullets" or "spells" to the point of mouse_pos and what I need help with is that the…
Feelsbadman
  • 1,163
  • 4
  • 17
  • 37
3
votes
3 answers

f# query with equations

I am working on some code where I need to use an f# query to sum a list. For anyone who is working on f# basics, here's a handy link: https://learnxinyminutes.com/docs/fsharp/ So far, I have code that prints a statement for a sum of the square of 5…
3
votes
1 answer

What is the most efficient way to solve system of equations containing the digamma function?

What is the most efficient way to solve system of equations involving the digamma function? I have a vector v and I want to solve for a vector w such that for all i: digamma(sum(w)) - digamma(w_i) = v_i and w_i > 0 I found the gsl function…
Neil G
  • 32,138
  • 39
  • 156
  • 257
3
votes
3 answers

Latex --- Is there a way to shift the equation numbering one tab space from the right margin (shift towards left)?

I have been formatting my dissertation and one little problem is stucking me up. I used the following code to typeset an equation \begin{align} & R=\frac{P^2}{P+S'} \label{eqn:SCS}\\ &\mbox {where} \quad \mbox R = \mbox {Watershed Runoff}…
Murari
  • 41
  • 1
  • 4
3
votes
1 answer

how to display math equations in block with markdown

In markdown quick reference, we know that one can display plain code in blocks by enclosing the code in ```. I wonder if there is a simple way to display math equations in block too. Thanks.
aonan zhang
  • 1,503
  • 2
  • 10
  • 6
3
votes
2 answers

How Can I Solve Matrix Equation in Matlab

Say I have the following matrix equation X - B*X*C = D Where, X: 3 by 5, to be solved; B: 3 by 3; C: 5 by 5; D: 3 by 5; Is there any convenient method that I can use for solving the system? fsolve?
L.J
  • 1,066
  • 2
  • 13
  • 28
3
votes
2 answers

Solving system of equations using matlab

So I have the following system of equations x1 - x2 = 20 x2 - x3 = 30 x3 - x4 = 75 x4 - x5 = -49 -x1 + x5 = -20 how would I solve the system using Matlab? I I'm a little stuck. There's a good chance there's no solution but if someone could…
Belgin Fish
  • 19,187
  • 41
  • 102
  • 131
2
votes
1 answer

Free boundary conditions in MATHEMATICA - is this right? Second opinion

I'm trying to prescribe free boundary conditions for a non-linear evolution equation in mathematica and I wanted as second opinion on whether or not what I am doing is right. The boundary conditions have been marked with a comment, viz., (FREE…
dearN
  • 1,256
  • 4
  • 19
  • 40
2
votes
3 answers

How to perform loan equations in Java?

I'm trying to make a program that will allow the user to determine different aspects when considering a loan. The first equation is supposed to determine what the monthly payment would be given the loan amount, interest rate, and number of months.…
2
votes
1 answer

Is it possible to export some equations from a "WYSIWYG" math editor to PHP code

Writing complex equations in PHP is big deal so it would be easier if I could write them as "WYSIWYG" i.e. with MS Mathematics and export them instead of coding them. I checked out if I could use MATLAB but it can only export to C which would mean I…
MrRap
  • 137
  • 13
2
votes
1 answer

Help debugging EvalMath's Undefined offset

Greetings and Salutations, My web application utilizes the EvalMath class found at PHPClasses. Unfortunately, it keeps generating approximately a 100 mb error log file each day because of this undefined offset error within the EvalMath class. It is…
Pie
  • 23
  • 2
1
2
3
12 13