Extensions
Directions:
On this page, you'll find code you can copy and paste directly into Photon. To do this, open Photon and click on the "</>" icon in the upper right corner of the window. You'll see a white box with a lot of text in it. All this text can be deleted if you want.
Either way, once you're ready, click one of the links below and copy the text into Photon. The code will be ready to use the moment you copy and paste it, but it won't be saved in Photon until you click the "Save" button in the bottom right corner of the window.
Note that upgrading Photon to a new version will cause all your code to be removed  but don't worry! You can always come back to this page and get the code again. Or, copy and paste the code out of Photon before upgrading to a new version.
Do you have an idea for an extension? Give your feedback here.
Addon: equation to image rendering
This is the extension you need to turn text equations into graphic displays! The standard installation comes with this file, so you'll only need this if you are missing mimetex.exe from the installation directory. When downloading this file, save it in the same directory as Photon.exe, probably located in C:\Program Files (x86)\Photon\ or a similar directory.


Alphabetized extension list:
All functions in the library
Click the above link to access every function at once. This is easiest to copy and paste if you want all of the extension functions.
Click the above link to access every function at once. This is easiest to copy and paste if you want all of the extension functions.
factor(a, b, c)
Factors a quadratic expression. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. The result will be a factored expression. If a factorization is not possible, the function will return "cannot factor."
Example:
factor(6, 7, 5) > (3x  5)(2x + 1)
Factors a quadratic expression. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. The result will be a factored expression. If a factorization is not possible, the function will return "cannot factor."
Example:
factor(6, 7, 5) > (3x  5)(2x + 1)
loanPayment(borrow, rate, years)
Calculates a monthly loan payment. The function assumes 12 payments per year and a percentage value (not decimal) for the interest rate.
Example:
loanPayment(10000, 4, 15) > 73.9687925609258
Calculates a monthly loan payment. The function assumes 12 payments per year and a percentage value (not decimal) for the interest rate.
Example:
loanPayment(10000, 4, 15) > 73.9687925609258
recurringDeposit(initial, deposit, rate, years)
Calculates the value of a recurring deposit investment. This type of investment is where you would start with an initial amount invested, but continue to add money to the investment once a month. The function assumes 12 deposits in a year and a percentage value (not decimal) for the interest rate.
Example:
recurringDeposit(10000, 100, 4, 15) > 42,894.0952575488
Calculates the value of a recurring deposit investment. This type of investment is where you would start with an initial amount invested, but continue to add money to the investment once a month. The function assumes 12 deposits in a year and a percentage value (not decimal) for the interest rate.
Example:
recurringDeposit(10000, 100, 4, 15) > 42,894.0952575488
solve(a, b, c)
Solves a quadratic equation, providing exact solutions. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. The answer will be a simplified fractional/radical expression, including "±" to indicate two solutions. Note that only integers can be used for a, b, and c. If you have fractional or decimal coefficients, you should be using the solveP and solveN functions to solve the positive and negative solutions of quadratic equations.
Example:
solve(2,3,5) > (3 ± i√(31))/4
Solves a quadratic equation, providing exact solutions. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. The answer will be a simplified fractional/radical expression, including "±" to indicate two solutions. Note that only integers can be used for a, b, and c. If you have fractional or decimal coefficients, you should be using the solveP and solveN functions to solve the positive and negative solutions of quadratic equations.
Example:
solve(2,3,5) > (3 ± i√(31))/4
solveN(a, b, c)
Solves a quadratic equation, providing the "minus" solution as a decimal answer. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. If the solution is imaginary, the output will be "error."
Example:
solveN(1,2,2) > 2.73205080756888
Solves a quadratic equation, providing the "minus" solution as a decimal answer. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. If the solution is imaginary, the output will be "error."
Example:
solveN(1,2,2) > 2.73205080756888
solveP(a, b, c)
Solves a quadratic equation, providing the "plus" solution as a decimal answer. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. If the solution is imaginary, the output will be "error."
Example:
solveP(1,2,2) > 0.732050807568877
Solves a quadratic equation, providing the "plus" solution as a decimal answer. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. If the solution is imaginary, the output will be "error."
Example:
solveP(1,2,2) > 0.732050807568877
vertex(a, b, c)
Converts a standard quadratic expression into vertex form. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. The result will be a quadratic expression in vertex form with fractional numbers.
Example:
vertex(2, 7, 5) > 2(x + 7/4)^2 + 89/8
Converts a standard quadratic expression into vertex form. The function will treat the integers a, b, and c as the coefficients of a quadratic expression in standard descending order. The result will be a quadratic expression in vertex form with fractional numbers.
Example:
vertex(2, 7, 5) > 2(x + 7/4)^2 + 89/8