Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Exponential from Two Points
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
points = { {3.5, 12}, {9, 75} } solve_for = 7.5 exp = points[2][1]-points[1][1] solution1 = (points[2][2]/points[1][2])^(1/exp) solution2 = points[2][2]/solution1^points[2][1] a = solution2*solution1^solve_for print( math.floor( (a*100)+.5 )/100 )
[
+
]
Show input
edit mode
|
history
|
discussion