AND Announces the Launch of an Updated GeoBondaries API

AND is proud to announce the launch of its updated GeoBoundaries API, which are part of its geo-location product suite. The GeoBoundaries API adds relevant information to a location, based on its numerical co-ordinates which is usually the name or type of area.

The AND database records the geographic boundaries of all administrative zones across the globe so that you always know which area you know which area you find yourself in or alternatively which ones to avoid.

I need a special quaternion to euler function

Truthfully it isn't really that special, but it is a bit cancerous as I only have atan() and not atan2()...
What's special about it is every other function I see seems to be intrinsic with 1 axis needing a sqrt() to manage singularities,
where what I'm looking to achieve is an extrinsic function that shouldn't have to care about singularities.

If it helps with anything, converting to mtx33 before euler might help in singularity management, as mtx33 is extrinsic by default.
(I've just recently learned a mtx33 was just an over-glorified semi-scalar NBT vector)

I'm not a mathematician though, so I'm not sure how much help that'll actually be...
but I AM certain the output code can be done without the need of managing singularities:

atan2(x,y),
atan2(x,y),
atan2(x,y)

instead of:

atan2(x,y),      # X pitch
atan2(x,sqrt()), # Y yaw
atan2(x,y)       # Z roll

as this causes 1 axis (yaw in this case) to lock up and not move >90 degrees without intrinsic measures applied to X and Z.

Also yes, I'm just using atan2 as an example here as I actually can't use it in what I'm doing...

There actually isn't a tag for what I'm doing as while it involves XML, it's actually somewhat C-like,
so in this case I'm requesting python just because it's easier to follow. :P

I can translate that to this:

<eval expr="eulerX = atan(Y/X)" display_error="false" display_result="false" comment=""/>

+1 if you actually know what I'm working with (irrelevant)

Is there anything that would fit what I need??

Get value from database on array in codeigniter

hello, i have table, like this
id_j.jpg

i want to create crud for it, this is the new section displaying and retrieving data, with this condition:
nama_barang show with autocomplete,
autocomplete.jpg

autocomplete works, and displays the data once selected but does not automatically create a number of data and they remain not separated.
how_to_get_array_.jpg

i want: if selected there is an automatic form creation for content in the form of a textarea according to the number of fields in the content field, separated by commas, like this
after-selected.jpg

this my model,

class Jm_model extends CI_Model{
     function search_jm($barang){
        $this->db->like('nama_barang', $barang , 'both');
        $this->db->order_by('nama_barang', 'ASC');
        $this->db->limit(10);
        return $this->db->get('tbl_penjaminan')->result();
    } 
}

controller

class Jm extends CI_Controller{
    function __construct(){
        parent::__construct();
        $this->load->model('jm_model');
    }

    function index(){
        $this->load->view('jm_view');
    }

    function get_autocomplete(){
        if (isset($_GET['term'])) {
            $result = $this->jm_model->search_jm($_GET['term']);

            if (count($result) > 0) {
                foreach ($result as $row)
                    $arr_result[] = [
                        'label'         => $row->nama_barang,
                        'description'   => $row->content, // problem here
                         //['description'   => [$row->content]], 
                    ];

                    echo json_encode($arr_result); 
            }
        }
    }
}

view

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="<?php echo base_url().'assets/css/bootstrap.css'?>">
    <link rel="stylesheet" href="<?php echo base_url().'assets/css/jquery-ui.css'?>">
</head>
<body>
    <div class="container">
        <div class="row">
            <form>
                 <div class="form-group">
                    <label>Nama Barang</label>
                    <input type="text" class="form-control" id="barang" placeholder="Barang" style="width:500px;">
                  </div>
                  <!--the problem is here ... the content cannot be separated automatically by making the amount of text match the contents of the array-->
                        <div class="form-group">
                            <label>Content</label>
                        <textarea name="content" class="form-control" placeholder="Content" style="width:500px;"></textarea>
                        </div>     
            </form>
        </div>
    </div>

    <script src="<?php echo base_url().'assets/js/jquery-3.3.1.js'?>" type="text/javascript"></script>
    <script src="<?php echo base_url().'assets/js/bootstrap.js'?>" type="text/javascript"></script>
    <script src="<?php echo base_url().'assets/js/jquery-ui.js'?>" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $( "#barang" ).autocomplete({
               source: "<?php echo site_url('jm/get_autocomplete/?');?>",
                select: function (event, ui) {
                    $('[name="barang"]').val(ui.item.label); 
                    $('[name="content"]').val(ui.item.description); // how to explode
                }
            });
        });
    </script> 
</body>
</html>